hi there guys i have some code which used a proxy
it works fine but does not load the full page
i think there is something wrong with my code
please help thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Mar 14, 2012, 2:27 PM
james bradberyPosted Mar 14, 2012, 8:50 AM
webBrowser1.ScriptErrorsSuppressed = true;
label6.Visible = false;
WebProxy wp = new WebProxy(textBox2.Text+":"+textBox3.Text);
HttpWebRequest httprequest = (HttpWebRequest)WebRequest.Create("http://www.whatismyip.com");
httprequest.Proxy = wp;
HttpWebResponse response = (HttpWebResponse)httprequest.GetResponse();
Stream recievedstream = response.GetResponseStream();
webBrowser1.DocumentStream = recievedstream;
Clearnetcache();
textbox3 = port
textbox2 = ip
it just shows a blank page or when i use a diffrent website it shows part of page
can anyone shed some light on this please
firewall not blocking proxys working
Sam HobbsPosted Mar 14, 2012, 7:48 AM
You probably think that is too much work, but it is definitely the type of thing I have done to get assistance from others. Sometimes I solve the problem myself in the process. One time I spent days trying to slve a problem and I spent a couple of hours creating a program that duplicated the problem but with a few lines of code. Then someone else was able to see my mistake; I had done something relly stupid but I did not see it myslef.
You are more likely to get help if you can provide sample code that is small yet that duplicates the problem.
james bradberyPosted Mar 14, 2012, 3:07 AM
Naga KotaPosted Mar 14, 2012, 2:33 AM
Check out the following in your Application
-->namespace for Webproxy
-->reference from server
-->block the firewall of your pc
this may help u