473,473 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WebBrowser - how to intercept and modify HTTP requests?

Hello,
I would like to intercept WebBrowser's HTTP requests in order to be able to
supply custom login to the proxy server, as well as choose the right
certificate for several specific sites. I'm trying to use the stock
WebBrowser control in .NET v2.0 and have no idea how to extend it with
additional interfaces that are supported by the underlying AxWebBrowser
control.
Many thanks for any help concerning the suitable interfaces to handle this -
and how to implement them!
Feb 6 '06 #1
1 7357
Ondrej,

You really aren't able to do this with the webbrowser (the managed
wrapper or the unmanaged version). The hooks simply are not in there to
intercept the HTTP request that the web browser makes.

You are better off using the HttpWebRequest/HttpWebResponse classes to
perform the request/get the response, and then feeding the response into the
web browser control for rendering.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ondrej Dobias" <On**********@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hello,
I would like to intercept WebBrowser's HTTP requests in order to be able
to
supply custom login to the proxy server, as well as choose the right
certificate for several specific sites. I'm trying to use the stock
WebBrowser control in .NET v2.0 and have no idea how to extend it with
additional interfaces that are supported by the underlying AxWebBrowser
control.
Many thanks for any help concerning the suitable interfaces to handle
this -
and how to implement them!

Feb 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
2
by: Christopher Benson-Manica | last post by:
Is there a more crossbrowser-friendly means to make HTTP requests using script than the XML methods? I need to do this in IE 5.0, and it doesn't seem to have the ActiveX control that can make XML...
13
by: yawnmoth | last post by:
Say I wrote an ajax script to send out HTTP requests via ajax. Any cookies that I have associated with that site will be sent along with this HTTP request. Is there a way to prevent this from...
4
by: rzimerman | last post by:
I'm hoping to write a program that will read any number of urls from stdin (1 per line), download them, and process them. So far my script (below) works well for small numbers of urls. However, it...
4
by: yawnmoth | last post by:
Is it possible to send http requests with curl but not have curl wait for the response? The reason I ask is because I'd like to code a web app that can sorta start time consuming processes...
8
by: kikapu | last post by:
Hi to all, we are building a fairly complex system here in work, and we couldn't imagine from the start that we would spend too much time just to transfer safely some kind of characters from...
3
by: decepti0n | last post by:
Hi there, I know flash can load external urls (for example xml files), is there a way to get these urls as they're loaded? I figured javascript would be a better option over php. Thanks for any...
4
by: K | last post by:
Hello everyone, I understand that urllib and urllib2 serve as really simple page request libraries. I was wondering if there is a library out there that can get the HTTP requests for a given...
1
ashsa
by: ashsa | last post by:
Hi, Could someone please illustrate how to send and receive HTTP requests programmatically through any HTTP proxy. Say if I have the ip address and the port number of a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.