Solved

C# Run http command in background

Posted on 2011-09-05
4
409 Views
Last Modified: 2012-05-12
Hello experts,
 How do I in C# run HTTP command in Background ?

Thanks
0
Comment
Question by:madmare
4 Comments
 
LVL 8

Expert Comment

by:guvera
ID: 36483628
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
 

Author Comment

by:madmare
ID: 36483642
Is this includes also HTTP command ?
0
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 36483693
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
 
LVL 2

Accepted Solution

by:
arundhaj earned 500 total points
ID: 36483798
you could use

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now