Click here to Skip to main content
15,920,053 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I try to send a request from my BHO to the server using HttpWebRequest class. But there appears to be a problem. How can I send browser cookies with request?

And when I get a response I don't know how to populate my browser with cookies from this response.

Or, perhaps, there exists more convenient classes for cross-domain requests.

Please help me to find a solution.
Posted
Updated 21-Jun-11 3:16am
v2

1 solution

You would need to use interop and call wininet api.

InternetSetCookie Function[^]
Pinvoke.net wininet.InternetSetCookie[^]

This would still work for Internet Explorer.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900