
November 6th, 2009, 08:04 PM
|
|
|
|
Some AJAX responses result in a file not found error!
With IE a certain ajax call doesn't return results but it only happens sometimes and not always.
The server error log shows: File does not exist: /home/user/public_html/500.shtml
The following are the http headers sent. The first is an AJAX call without an error and the second is with the error. I have changed any data that would identify the website. What on earth could be wrong?  they are the same ajax call.
Quote:
POST /ajax/ajax.php HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: en-gb
Referer: http://url
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: www.site.com
Content-Length: 6
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=30d611c74ca8a4ff321a563d8ceff404
qid=46
HTTP/1.1 200 OK
Date: Sat, 07 Nov 2009 00:51:52 GMT
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1
X-Powered-By: PHP/5.2.9
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=2, max=15
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
POST /ajax/ajax.php HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: en-gb
Referer: http://url
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: www.site.com
Content-Length: 5
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=30d611c74ca8a4ff321a563d8ceff404
qid=3
HTTP/1.1 500 Internal Server Error
Date: Sat, 07 Nov 2009 00:51:54 GMT
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1
Content-Length: 845
Connection: close
Content-Type: text/html; charset=iso-8859-1 |
|