Closed prcomm closed 10 years ago
You can access the inner HttpWebRequest
using a construct like this:
It should be easy enough to create a wrapper or extension method to incorporate this if you want to do so for all requests. Generally speaking I don't intend to build a lot of capabilities onto CreateFromUrl since there are any number of things people might want to customize or refine such as this.
CreateFromUrl causes WebException while loading web-pages which demand of cookies accepting (ex.: http://www.lscompany.spb.ru). Simply solved by appending of Net.CookieContainer to the underlying HttpWebRequest (code example: http://social.msdn.microsoft.com/Forums/vstudio/en-US/d1d3c41c-bf70-447a-bbb7-8bb09a2f6ca6/making-requests-using-webclient-and-security-tokens?forum=Geneva).