Threads and Webbrowsers and proxies...oh my....

J

jim

Is there a way to have different webbrowser controls open at the same
time while using a different proxy for each control?

Is it possible to have different webbrower controls in different threads
with each webbrowser control utilizing a different proxy?
 
G

Gregory A. Beamer

jim said:
Is there a way to have different webbrowser controls open at the same
time while using a different proxy for each control?

Is it possible to have different webbrower controls in different
threads with each webbrowser control utilizing a different proxy?

Directly? I don't think so.

The problem here is the WebBrowser control is a wrapper that does not
expose enough.

But it is not all doom and gloom. You can use the other NET classes to
get the HTML from the site and then use ProcessRequest to pull in the
HTML from a stream object. Going this route, you have control over the
proxies used, etc.

Yes, it is more involved, but to me this is a lot like asking questions
about the DataSource control, which wraps (and hides) most of the data
functionality from the developer.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
J

jim

Directly? I don't think so.

The problem here is the WebBrowser control is a wrapper that does not
expose enough.

But it is not all doom and gloom. You can use the other NET classes to
get the HTML from the site and then use ProcessRequest to pull in the
HTML from a stream object. Going this route, you have control over the
proxies used, etc.

Yes, it is more involved, but to me this is a lot like asking questions
about the DataSource control, which wraps (and hides) most of the data
functionality from the developer.

Peace and Grace,
Thanks for the reply. Any clue as to what .net classes I should start with?

Also, is there a good online reference for finding functionality within
the .net framework's bagillion classes?

Thanks again!
 
G

Gregory A. Beamer

jim said:
Thanks for the reply. Any clue as to what .net classes I should start
with?

Also, is there a good online reference for finding functionality
within the .net framework's bagillion classes?

Assuming this is all HTTP (working with web sites and web servers) - which
is probably safe considering the web browser control - you start with
HttpRequest and HttpResponse. These are the main wrapper classes for the
WinAPI Internet functionality.

In the docs, start here:
http://msdn.microsoft.com/en-us/library/system.web.aspx

If you want a code project to understand the mechanisms:
http://www.codeproject.com/KB/IP/httpwebrequest_response.aspx

Peace and Grace,


--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top