Re: Virtual Domain and host info in http request
From: Jeff Breitner (usenet_at_rudn.com)
Date: Mon, 31 May 2004 16:32:29 -0400
> Yes, but it is line wrapping pretty badly here and I am afraid to try it. Can
> you please zip this file and send it to my email or give me a link to this
> file so that I can "download it fresh", Jeff?
I'll see if I can email it to you.
> I do not have telnet enabled on my redhat machine, I use ssh. Can I do it
> this way or do I have to enable telent for this?
You just need to have the telnet client, not the server. You're going
to telnet to port 80 and the server isn't going to be the telnet server,
> I don't think so... I used a "fresh rpmnew" one for the test but at this
> point, anything is possible. I like this simple index with destination test
> idea, turning on the virtual hosts, running ethereal to caputure, telnetting
> in and seeing what happens.
> Uhm, how exactly does one "pretend to be a browser" with telnet? I can telnet
> to port 80 for sure but what would I to to present myself as a browser to see
> what is going on? And will ssh not work for this (probably not)?
Well, you're going to spit at it what a browser would spit at it.
As a minimum, you'll want to say something like:
>telnet www.something.com 80
Connected to www.something.com.
Escape character is '^]'.
(then you type)
GET / HTTP/1.1
(and it should send the page)
-- WWJD? JWRTFM Rot13 for email address: yvfgf @ ehqa.pbz