How to modify WebBrowser control HTTP request header

Hi,

if I have an app with a WebBrowser control and load some website in it, is it possible to modify the HTTP request header? I want to change the following:
user-agent
accept language
referer
maybe something else

but please post a piece of code, don't point me to some complicated examples of self-made browsers etc

Thanks
hveldAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kodiakbearConnect With a Mentor Commented:
Moving to the Paq

kb
Experts Exchange Moderator
0
 
AzraSoundCommented:
Not directly with VB.  Eduardo created a type library that lets you alter these things, though, that you can download here (he also has an example showing how to alter user-agent, for instance):

http://www.domaindlx.com/e_morcillo/scripts/cod/default.asp?page=IE
0
 
hveldAuthor Commented:
Thanks I got this but can't make it work, even the sample app provided by the author does not work. Also it looks like only user agent can be changed but none of the other header things.
0
 
Richie_SimonettiIT OperationsCommented:
learning...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.