Last post Aug 03, 2009 06:11 PM by dotNet_Student
Aug 03, 2009 02:23 PM|dotNet_Student|LINK
Is there a way to capture a WebRequest and store it (serialized etc) and somehow recreate the same request at
a later time and send it back to the server?
I know I can use the WebRequest.Create(uri) to make a simple request (like www.google.com) but I am looking for storing the complete POST or GET whatever the case might be. Would appreciate your help!
Aug 03, 2009 03:37 PM|RichardD|LINK
You can use the
SaveAs method of the
HttpRequest class to save the complete request details to a text file. However, I'm not aware of any built-in method which could load this file and re-issue the request. You could do it manually using a tool like
Fiddler; otherwise, you'd have to write code to parse the file and build an
HttpWebRequest from it.
Aug 03, 2009 03:39 PM|SSA|LINK
Look at this article on MSDN:
Its shows create and saving a request, posting it to get response.
Aug 03, 2009 06:11 PM|dotNet_Student|LINK
Thank you very much for replying. I think that is what I was looking for :)