httpd-users mailing list archives

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

>    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.
> could be a helpful place to start.

Thanks, that gives me a clue,
I will look for those headers


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message