I have bought an elite proxy at http://www.bestproxyandvpn.com/Now im using it to download pages, or I would like to do it. I have set the proxy to work as a "socks" proxy.I have set up a tracelistener, but that file doesn't even get filled with information(it does gets filled with info when i publish my webpage to my domain, so it works), so I'm guessing it's a problem early in the processes. This is my code for loading the htmldocument. \[code\]System.Net.ServicePointManager.Expect100Continue = false; HtmlWeb htmlweb = new HtmlWeb(); HtmlDocument htmldoc = htmlweb.Load(@"URLOFPAGE", "108.62.94.129", 48026, "USERID", "PASSWORD"); return htmldoc;\[/code\]First problem was the \[code\]The server committed a protocol violation. Section=ResponseStatusLine\[/code\]I fixed that when I added \[code\] httpWebRequest useUnsafeHeaderParsing="true" \[/code\]to my web.configSecond problem was the \[code\]The underlying connection was closed: The connection was closed unexpectedly.\[/code\]When I added \[code\]System.Net.ServicePointManager.Expect100Continue = false;\[/code\]I added this as you can see in my code(up above). But I dont know if it need to be added to the webconfig aswell?Questions
1. What am I doing wrong?2. Should I add System.Net.ServicePointManager.Expect100Continue to my webconfig?
1. What am I doing wrong?2. Should I add System.Net.ServicePointManager.Expect100Continue to my webconfig?