HTTP/1.1 requires that all Internet request messages have a Host header
field which specifies the host ( and, optionally the port number ) of the
requested resource. The request will therefore look something like:

GET / HTTP/1.1
Host: www.perl.org

HTH,

Rob



----- Original Message -----
From: "LRMK" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 4:56 PM
Subject: Writeing a HTTP server with perl


I wrote a http server in perl to handle
GET request from browser
but browsers only send
GET folder\filename HTTP X.Y
request to the server

how do i find which domain name that the user typed in the Address field. to
implement hosts.
actually i just want to know how to do it my server will not be a fully
qualified one it just reads GET request and send some thing to the client
depending on the request

but from GET i only see folder path of the requested url
how do i find the domain name or absolute url that user want



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to