tags:

views:

473

answers:

3

How do you handle cookies and with webrequest/response as in a proxy? I'm not sure how to do this...or if i even can. C#.Net3.5

A: 

Can you clarify what you mean? What is the setup here? If you want to perform multiple related operations, then WebClient may be more appropriate; this might (I haven't checked - never needed it) retain cookies between calls on the same WebClient instance (and is a lot easier to use, too).

Marc Gravell
A: 

You know how some web based proxies can handle cookies and therefore allow you to log into to sites etc... how can i do something to this similar capability in .net?

Dacto
+1  A: 

I think what Christophe does here is what you're after with cookies and HttpWeb*.

CVertex