How to modify WebBrowser control HTTP request header

Posted on 2002-03-21
Last Modified: 2009-07-29

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:
accept language
maybe something else

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

Question by:hveld
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
LVL 28

Expert Comment

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):

Author Comment

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.
LVL 16

Expert Comment

ID: 6886277

Accepted Solution

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

Experts Exchange Moderator

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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 …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

623 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