question

TonyJK-1323 avatar image
0 Votes"
TonyJK-1323 asked SamWu-MSFT commented

How to modify HTTP Host header in Browser ?

Hi,

We encounter a problem similar to this one
http://rtomaszewski.blogspot.com/2013/01/how-to-modify-http-host-header-in-chrome.html

We get 404 Error without adding Host Header when performing a CURL.

We just wonder whether it is possible to add the Host Header (Similar to that blog) when we attempt to access a URL via Browser ?

Thanks

windows-server-iis
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@TonyJK-1323 Do you want to modify HTTP request headers? if so, you can use url rewrite to modify HTTP request headers. more information you can refer to this link: Setting HTTP request headers.

0 Votes 0 ·

1 Answer

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered TonyJK-1323 commented

The blog is a demo of chrome extension for making http requests. The best of these is postman. Recently postman converted to a desktop app.

https://www.postman.com/

If you meant just using the url bar in the browser, the browser sets the host header to the dns name in the url.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dear Bruce,

May I ask can I enter
http://www.google.com/mysite_rado.html?Host:rado.example.com to get the same result ?

Thanks

0 Votes 0 ·