Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to modify WebBrowser control HTTP request header

Posted on 2002-03-21
4
537 Views
Last Modified: 2009-07-29
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
0
Comment
Question by:hveld
4 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 6885633
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
 

Author Comment

by:hveld
ID: 6886087
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6886277
learning...
0
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 7666088
Moving to the Paq

kb
Experts Exchange Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question