http://www.perlmonks.org?node_id=176163

dwatson06 has asked for the wisdom of the Perl Monks concerning the following question:

I need to connect to a cgi script in a subdirectory.
http://theSite.com/subdirectory/new_login.cgi
At what point of the socket connection do you pass the directory location ('subdirectory/newlogin.cgi')?
  • Comment on How can my tcp client call a sub directory when calling a socket connection?

Replies are listed 'Best First'.
Re: How can my tcp client call a sub directory when calling a socket connection?
by sschneid (Deacon) on Jun 20, 2002 at 21:42 UTC
    Directory information is called from within the HTTP request, ie:
    print $remote "GET http://thesite.com/subdirectory/newlogin.cgi\n";
    You may want to check out RFC 2068 for more information. scott.