all groups > dotnet general > december 2005 >
You're in the

dotnet general

group:

Modify Request Header



Modify Request Header Dave Slinn
12/10/2005 11:15:57 PM
dotnet general: I have a VB app hosting the Webbrowser control. I would like to add
"something" to the requests that app is submitted to our web application to
indicate that its from this webbrowser and not a separate instance of IE.

Is this possible, keeping in mind that I cannot add anything to the
registry, since a user may still use IE to visit the web app.

Re: Modify Request Header Cor Ligthert [MVP]
12/11/2005 12:00:00 AM
Dave,

It is different for the axWebBrowser 1.x than for the WebBrowser 2.0.
Basicly it is setting using the interface the designmode to on and off.

This for the webbrowser 2.0

DirectCast(WebBrowser1.Document.DomDocument,
mshtml.IHTMLDocument2).designMode = "On"

Be aware that it has some strange side effects.

I hope this helps,

Cor

"Dave Slinn" <CougarDave@noemail.noemail> schreef in bericht
news:e5YB5Hh$FHA.3872@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button