This project is read-only.

How to: HTTP web request and HTTP web response?

May 3, 2012 at 6:50 AM

I'm a newbie at such experiences.

Just wondering it might sound trivial but can anyone post some simple example that how can I make HTTPwebrequest to external webpage and get the response using javascript so that I can run that script in my asp.net webpage. I need to include input parameters in my request.

Here's some hint what I do in an windows application:

IDictionary<String, String> paramList = new Dictionary<String, String>();

paramList.Add("p1", "v1");   

paramList.Add("p2", "v2");

paramList.Add("p3", "v3");

string target_url = "some_url";

string strResponse = object.CreateRequest(target_url, paramList);

Thanks in Advance.