Changing Request Headers values

G

Guest

How do I change a value in the request headers?

I need the value Request.Headers.Item("Host") to be changed from localhost
to a domain name, any thoughts?

I know it should be easy to do because ASP.net makes everything easy, but I
can't seem to figure it.

Thanks

I have already tried:
* Creating a IHttpHandler
* Adding a property to global.asax called Request that was not read-only
* Creating a new class that inherits from HttpRequest but the class is
marked as NonInheritable
 
A

Andy Fish

It seems a very dodgy thing to want to do, so I'm not surprised it's not
working.

If you can explain why you think you need to do this, maybe someone will
come up with a better solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top