php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7586 Invalid (?) "HTTP/1.0 Something" response
Submitted: 2000-11-02 05:29 UTC Modified: 2000-11-03 04:19 UTC
From: tictactux at surfeu dot ch Assigned:
Status: Closed Package: Other web server
PHP Version: 4.0.3pl1 OS: Linux 2.2.17
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tictactux at surfeu dot ch
New email:
PHP Version: OS:

 

 [2000-11-02 05:29 UTC] tictactux at surfeu dot ch
Whenever thttpd (2.20b) runs a PHP script, its header looks like "HTTP/1.0 200 Something(...)". This causes some Proxies to choke, and subsequently I cannot login into my Webmail application. From the Wild West Web (not via a Proxy) the scripts behave as expected.

The source is in php-4.0.3pl1\sapi\thttpd\thttpd.c lines 48ff in function sapi_thttpd_send_headers:

static int sapi_thttpd_send_headers(sapi_headers_struct *sapi_headers SLS_DC)
{
	char buf[1024];

	if (!SG(sapi_headers).http_status_line) {
		snprintf(buf, 1023, "HTTP/1.0 %d Something\r\n", SG(sapi_headers).http_response_code);
		send(TG(hc)->conn_fd, buf, strlen(buf), 0);
	}
	
	return SAPI_HEADER_DO_SEND;
}

This should be corrected to yield the 'normal' thttpd headers (HTTP/1.1 200 OK etc).


Get the phpinfo() output at http://62.2.72.158/test.php.

Regards, Ben

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-03 04:19 UTC] tictactux at surfeu dot ch
Issue closed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC