Solved

C# Run http command in background

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

Thanks
0
Comment
Question by:madmare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

710 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