HttpRequest constructor question!

HttpRequest constructor question!

Post by Jeff » Wed, 25 Apr 2007 05:48:48


I'm about to program a HttpRequest from my 2.0 website. I'll request
another server using HttpRequest and ask if password etc are okay....

So I've looked into the HttpRequest constructors and cannot see how to use
public HttpRequest (
string filename,
string url,
string queryString
What should be put in filename? could filename be for example index.asp? Is
it so that filename tells what file the request will access?...

HttpRequest r = new HttpRequest("index.asp",, "id=2"); - will
this be the same as\index.asp?id=2 ???

By the way if you know about a great article on the Internet describing how
to manually do HttpRequest, then I would appreaciate very much if you could
provide me with link to that article...

Best Regards


HttpRequest constructor question!

Post by bruce bark » Wed, 25 Apr 2007 09:02:02

you do not use HttpRequest, its for aspx processing. Use the WebClient
or HttpWebRequest classes. google either for examples.

-- bruce (