Hossein
Hossein

Reputation: 25924

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)?

Upvotes: 1

Views: 794

Answers (2)

MattDavey
MattDavey

Reputation: 9017

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.

Upvotes: 1

Dai
Dai

Reputation: 155145

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.

Upvotes: 0

Related Questions