views:

176

answers:

2

I wonder if there is a .NET library that mimics a browser in terms of HTTP transactions. In other words I am going to make multiple GET/POST requests and I want the cookies to be persisted to a storage, so that consecutive request will be identified by the remote host. AFAIK cURL has support for this functionality.

A: 

Take a look at Fiddler. Its actually a debugging proxy which is handy for capturing an initial conversation. Its built in .NET and is quite scriptable in .NET languages.

AnthonyWJones
+1  A: 

The built in System.Net.HttpWebRequest class has support for cookies, but they are disabled by default for security reasons. You can enable them and persist them using CookieContainer

Orion Edwards