Jump to content

Status 200 but no data


bartmcp

Recommended Posts

I'm having an issue with Apache not returning any data intermittently for a PHP application.  It shows a status of 200 in the access log for the page requested but number of bytes returned shows - (otherwise known as zero).

 

The stranger part of this is that this does not happen all of the time.  It seems to happen to about 50% of the requests.  Usually the first time you hit the site you get the white page.  You may try it again immediately and get the page.  Other immediate retries may also show empty.

 

The code works fine using php-cli.  Any suggestions?

 

This is a Suse installation using Apache2 over HTTPS.

 

???

 

Edit:

Here's an example of what's seen in the access log for the first attempt being empty and the immediate retry that returns data.

xxx.xxx.x.xx - - [17/Apr/2008:14:11:41 -0400] "GET /index.php?page=index HTTP/1.1" 200 -

xxx.xxx.x.xx - - [17/Apr/2008:14:11:46 -0400] "GET /index.php?page=index HTTP/1.1" 200 30764

xxx.xxx.x.xx - - [17/Apr/2008:14:11:47 -0400] "GET / HTTP/1.1" 200 30764

Link to comment
https://forums.phpfreaks.com/topic/101594-status-200-but-no-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.