C# Run http command in background

Hello experts,
 How do I in C# run HTTP command in Background ?

Thanks
madmareAsked:
Who is Participating?
 
arundhajConnect With a Mentor Commented:
you could use

HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.google.com");
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
0
 
guveraCommented:
Hi,

 Please check the below link for your reference

http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx

Also check it out the below link and download the source file for your reference

http://www.codeproject.com/KB/cs/Execute_Command_in_CSharp.aspx

Thanks
Guvera
0
 
madmareAuthor Commented:
Is this includes also HTTP command ?
0
 
Easwaran ParamasivamCommented:
You mean you want to browse to other pages such as http://something.com/..?

If so, use Response.Redirect(url).

Or in client side use window.open(url)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.