Solved

How to modify WebBrowser control HTTP request header

Posted on 2002-03-21
4
543 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
[X]
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
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

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.
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

734 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