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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Naga Kota17 reputationPosted Mar 13, 2012, 10:33 PM EDT
Check out the following in your Application
-->namespace for Webproxy
-->reference from server
-->block the firewall of your pc
this may help u
james bradbery19 reputationPosted Mar 13, 2012, 11:07 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Mar 14, 2012, 3:48 AM EDT
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 bradbery19 reputationPosted Mar 14, 2012, 4:50 AM EDT
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 HobbsRank #107 · 20.5K reputationPosted Mar 14, 2012, 10:27 AM EDT