How do I read an HttpResponse in ASP.NET 2.0?

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2008-09-23T18:08:13Z Indexed on 2010/06/10 22:12 UTC
Read the original article Hit count: 265

Filed under:
|
|

For example, I have an ASP.NET form that is called by another aspx:

string url = "http://somewhere.com?P1=" + Request["param"];
Response.Write(url);

I want to do something like this:

string url = "http://somewhere.com?P1=" + Request["param"];
string str = GetResponse(url);
if (str...) {}

I need to get whatever Response.Write is getting as a result or going to url, manipulate that response, and send something else back.

Any help or a point in the right direction would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET