Change HTTP Host: Header

Mostafa Z. Afgani mostafa.afgani at world.iu-bremen.de
Wed Apr 6 19:55:17 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all,

Is there any easy way to change the HTTP Host: header from the client
side? My Uni. Intranet is using IIS 5.0 which apparently is doing some
filtering based on the "Host:" header. As a result I can't use the old
trick of just SSH tunneling to the site. If I try to use the tunnel, the
"Host:" line shows up as "localhost" on the request to the server and
hence is redirected to some page that says there is no server here.

Right now, the only trick I can pull is to set my hostname to the name
of the server and add "127.0.0.1 	server_name" to /etc/hosts and then
then use the SSH tunnel. Then I can just goto http://server_name and it
works since "Host:" is now "server_name". This is painful however since
GNOME doesn't seem to handle the hostname change particularly well ... I
have to logout and login after every change.

I've tried digging on Google but most of the information pertain to
servers not clients .. so .. my question is .. can I masquerade my HTTP
"host:" header?


Looking forward to your expert opinion,
- -M
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCVD6l14B2Pwzes+4RAj3rAJ0cnZPmdtqFl25YsMcGSEMdjKQ0IgCdFnS5
t5WimIUevhWSg8Qr7uoTyfQ=
=9ANv
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list