How to send HTTP request from C# code?
-
Hi! I want to open a user specified URL from C# code, i am using C# 2005. Can any body tell me how will i do it? Thanks, Regards, Affan Ahmad Toor
-
Hi! I want to open a user specified URL from C# code, i am using C# 2005. Can any body tell me how will i do it? Thanks, Regards, Affan Ahmad Toor
use System.Diagnostics.Process.Start("http://www.google.com"); put your URL in place of google.com Enjoy ;)
Anuj
-
Hi! I want to open a user specified URL from C# code, i am using C# 2005. Can any body tell me how will i do it? Thanks, Regards, Affan Ahmad Toor
Google is your friend: HttpRequest[^]
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Virginia Tech Shootings, Guns, and Politics The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Google is your friend: HttpRequest[^]
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Virginia Tech Shootings, Guns, and Politics The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
No that was just a example...and yes try to understand requirement! "I want to open a user specified URL from C# code"...
Anuj
Actually, the class I was thinking of was WebRequest[^]. That will allow you to make a request into any URI, including a user-specified URL.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Virginia Tech Shootings, Guns, and Politics The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
use System.Diagnostics.Process.Start("http://www.google.com"); put your URL in place of google.com Enjoy ;)
Anuj
Thanks for reply, Your suggestion solved my problem but created another problem... i am storing the user defined URL in XML file.. if i store the URL "http://www.google.com" it works perfectly, but when i try to store the URL "http://www.google.com/search?hl=en&q=abc" it corrupts the XML file and gives error "A semi colon character was expected." can you tell me what is the reason behind this error...? Thanks, Regards, Affan Ahmad Toor