You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by taiska <ta...@takas.lt> on 2006/09/07 10:30:04 UTC

[users@httpd] apache 1.3.33 respond to HTTP/1.1 request in HTTP/1.0

I do request using wininet.dll functions : HTTPOpenRequest, HTTPSendRequest
I get respond in HTTP/1.0 protocol
Using Apache 1.3.33 (Debian GNU Linux) PHP/4.3.10-16


Request:

nReq = HTTPOpenRequest( httpSession, "POST", "/dir/page.php", "HTTP/1.1", NULL, NULL,
INTERNET_FLAG_RELOAD + INTERNET_FLAG_KEEP_CONNECTION, 0)

HTTPSendRequest(nReq, "Content-Type: multipart/form-data; boundary=------7cf2a327f01ae", 67, cPostBuffer, cPostSize )


PHP command:

header("Status: 453 My text")


Send me respond, I get  with HTTPQueryInfo():

HTTP/1.0 200 OK
Date: Wed, 06 Sep 2006 12:28:55 GMT
Server: Apache/1.3.33(Debian GNU/Linux) PHP/4.3.10-16
X-Powered-By: PHP/4.3.10-16
Status: 453 My text
Content-Type: text/html
X-Cache: MISS from my.server.com
X-Cache-Loop: None


But in other machine with:
Apache 1.3.33 Win32 and PHP /4.4.1
respond is:

HTTP/1.1 453 My text
Date: Wed, 06 Sep 2006 12:28:55 GMT
Server: Apache/1.3.33(Win32) PHP/4.4.1
X-Powered-By: PHP/4.4.1
X-Zend-WinEnabler: 1.2.0
Keep-Alive: timeout=15,max=2
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

httpd.conf in both is:

<IfModule mod_setenvif.c>

    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0

</IfModule>

Thanks in advance.

Re: [users@httpd] apache 1.3.33 respond to HTTP/1.1 request in HTTP/1.0

Posted by Joshua Slive <jo...@slive.ca>.
On 9/7/06, taiska <ta...@takas.lt> wrote:
>
> HTTP/1.0 200 OK
> Date: Wed, 06 Sep 2006 12:28:55 GMT
> Server: Apache/1.3.33(Debian GNU/Linux) PHP/4.3.10-16
> X-Powered-By: PHP/4.3.10-16
> Status: 453 My text
> Content-Type: text/html
> X-Cache: MISS from my.server.com
> X-Cache-Loop: None

The X-Cache* headers are not apache headers as far as I know.  They
imply to me that there is a proxy server (possibly squid) between the
client and the server.  It is likely the proxy that is converting to
HTTP/1.0.

Joshua.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org