Solved

How to modify WebBrowser control HTTP request header

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now