Hi all!

Is there any way to add http headers to a request generated by the web browser component in C#?

The setup is as follows: I have developed a piece of thadware that gives users access to the internet. The hardware is connected to an admin pc. On this PC I have some management software, which includes a http proxy server I coded.

All over the network, I have client interfaces that can send http requests to the proxy server and thus access the web. Problem is, when configuring the browser component to uste my proxy server, I also configure all instances of IE (and other apps that uses IE's settings) to use my proxy. This is undesirable. So i thought of adding an "authentication" header in the request, so that the proxy can grant access to requests generated by my app only.

Is there any way to do this?

Thanx in advance. :)

Recommended Answers

All 2 Replies

Are you using the IE component in mshtml?

I'm using the standard WebBrowser component availible in C#. It rues the IE engine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.