develooper Front page | perl.beginners | Postings from December 2002

Writing a HTTP server with PERL

Thread Next
December 2, 2002 09:05
Writing a HTTP server with PERL
Message ID:
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
Im Using IO::Socket::INET

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About