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 go to www.google.com
. But this must be done programmatically. I know that I can use the WebProxy
class, but how can I write code so that a proxy can be used?
Can anyone give me an example code snippet or something else?
thanks
Ozkan source share