简体   繁体   中英

How to use a proxy website to view some other websites in C#?

Suppose several websites are filtered in my region, and in order to get some specific information on that pages, i need to use a proxy website such as ( Thisone ) to bypass the filtering.
How can i send my URL to these kind of sites and get the result?
How can i search in the resulting content for specific term or object (image, flash, etc)?

It looks like the site you mentioned does not provide any API of any kind that you can call from C#. Probably your best option is to automate manual entry of the url using a tool like Selenium or Watin .

The WebClient and WebBrowser components in .NET automatically use the system Internet Explorer network and proxy settings (set via the Control Panel > Internet). If you set them there then you're all set.

If you use WebBrowser I don't know (off my head) if you can manually override the proxy settings, but with WebClient you set the WebClient.Proxy property.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM