Solved

How to modify WebBrowser control HTTP request header

Posted on 2002-03-21
4
530 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 48
VBA Shell can't Find Word document 11 93
How to Add / Edit Windows Menu 4 60
converting visio 2010 to powerpoint 2010  - formatting issues 5 72
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

773 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