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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux