I need to connect to a website using a proxy server. I can do this manually, for example I can use the online proxy http://zend2.com
and then surf to www.google.com
. But this must be done programmatically. I know I can use WebProxy
class but how can I write a code so a proxy server can be used?
Anyone can give me a code snippet as example or something?
thanks
Best Answer
Understanding of zend2 works, you can populate an url like this :
for browsing google.
I C#, build the url like this :