Re: Virtual Domain and host info in http request

From: Jeff Breitner (usenet_at_rudn.com)
Date: 05/31/04


Date: Mon, 31 May 2004 16:32:29 -0400

Ohmster wrote:

>
> 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,
but Apache.

> 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
Trying 66.35.250.151...
Connected to www.something.com.
Escape character is '^]'.
(then you type)
GET / HTTP/1.1
Host: www.something.com

(and it should send the page)

-- 
WWJD?  JWRTFM
Rot13 for email address:  yvfgf @ ehqa.pbz


Relevant Pages

  • Re: Virtual Domain and host info in http request
    ... You just need to have the telnet client, not the server. ... you're going to spit at it what a browser would spit at it. ...
    (alt.os.linux)
  • Re: basic DNS question...
    ... > I am not trying to access the site with telnet, only via the browser. ... > my server. ... If you want to access a name based virtual host with a browser you have ...
    (comp.os.linux.networking)
  • Re: Cant Surf Yahoo!
    ... open a command prompt and try "telnet ... you know it's something in the browser. ... Is your Internet-bound traffic routing through the SBS server or go straight ...
    (microsoft.public.windows.server.sbs)
  • Re: inetd to take telnet request
    ... flavours of TELNET here - so I read on. ... I know about INETD only from long ago with the RS/6000 UNIX, ... server applications" in the CS IP Configuration Guide: ...
    (bit.listserv.ibm-main)
  • Re: Product for Running Embedded C# Application
    ... Telnet sessions or Web sessions with our Web server on the device and a lot ... There's a Telnet server available to Windows CE ... communicates with specific hardware and forwards data to a back end ...
    (microsoft.public.dotnet.framework.compactframework)