Using the Response Object to raise a request.

Mar 4, 2010 at 5:48 AM


I have the following scenario and would require your advice on how to go about utilizing your HttpHandler class.

there are 2 pages

  • Page 1 - Login Page
  • Page 2 - URL invokes download of a file.


When i directly try to access the Page 2, it moves me to the Page 1 and when i enter the credentials, the download of the file starts.

I use the nextRequest method to access Page 2 that gets the response as Page 1. How do i use the same response object to provide the credentials to download the file.
Require your advice on this very badly. 


Mar 4, 2010 at 1:04 PM

If you just call the NextRequest method again, then it will create a new request using the cookies set by the previous response (exactly the same way that you web browser does it)