httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Pereira <car...@pehoe.civil.ist.utl.pt>
Subject Re: socket programming
Date Tue, 16 Apr 2002 21:22:33 GMT
>Try to substitute
>   sprintf (buffer, "GET %s\n", http_page);

>with
>    sprintf (buffer, "GET %s HTTP/1.0\n\n", http_page);

>Remember: The HTTP request should be terminated by TWO newlines.

Bingo! it's working, thanks a lot!

>Just to add to what Svein Olav Bjerkeset wrote:  there are a number
>of HTTP headers defined in the HTTP protocol.  One of these headers,
>the HTTP_HOST header, is what the server uses to identify which
>Virtual Host to connect to when using Named Virtual Hosts.  You would
>need to define and send this header to visit a domain other than the
>default domain for a site that is using Named Virtual Hosts.
>www.w3.org/Protocols/ could be a helpful place to start.

Thanks, that gives me a clue,
I will look for those headers
from www.w3.org/Protocols

Carlos

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message