Forum Moderators: phranque

Message Too Old, No Replies

Is this Apache or Browser Error?

Apache Browser 400 Bad Request

         

nihal

9:08 am on Oct 13, 2008 (gmt 0)

10+ Year Member



I have a strange problem with my server. 3-4 days ago, i want to add a new IP to my server for an e-coomerce site. I dedicated this IP to my site.

But before installation of the SSL certificate, i notice that, my site is not reachable some browser. For example i reach to see the my pages on my site with IE 6.0, Firefox 3.0.3, but i can not reach to my site with some other browsers like IE7, Opera 9.60 or Firefox 1.5.0.2. They gives an "400 Bad Request" error.

Apache 2.0.53 web server installed on my server. And i do not see any problem like this on my server before.
So i can not understans what is the problem.

The error logs says "request failed: error reading the headers" when the client browser say "400 Bad Request".

But i do not know how can i solve this problem? Which cause this problem.

(There is no change when i change the IP dedicated to shared. Or when change the IP adress)

Please help.

g1smd

9:36 am on Oct 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What is in those headers?

Use Live HTTP Headers for Firefox to capture the headers that your browser is sending to the server.

nihal

9:58 am on Oct 13, 2008 (gmt 0)

10+ Year Member



how can i do this? I do not understand what you say.

g1smd

10:16 am on Oct 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Install the Firefox web browser on to your computer.

Install the Live HTTP Headers extension for Firefox.

Follow their instructions for usage of this extension.

It will show you what your browser asks the server to do.

nihal

11:49 am on Oct 13, 2008 (gmt 0)

10+ Year Member



The report of HTTP Live headers is below.

[mydomain.com...]

GET / HTTP/1.1
Host: www.mydomain.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: tr-TR,tr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-9,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0

HTTP/1.x 400 Bad Request
Date: Mon, 13 Oct 2008 11:38:49 GMT
Server: Apache/2.0.53 (RHEL)
Content-Length: 303
Connection: close
Content-Type: text/html; charset=iso-8859-1

What is the meaning of this?

g1smd

12:05 pm on Oct 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is it right that you will only accept pages in ISO-8859-9 and UTF-8 because the server only sends ISO-8859-1 out?

Or am I misunderstanding something?

Receptional Andy

12:29 pm on Oct 13, 2008 (gmt 0)



There's an earlier thread discussing the same problem which may be of some use:

400 Bad Request/request failed: error reading the headers details [webmasterworld.com]

nihal

12:55 pm on Oct 13, 2008 (gmt 0)

10+ Year Member



The report of HTTP Live Headers for my another domain on another IP, is below. But there is no problem when i open the www.myotherdomain.com.

*************************************************************************

[myotherdomain.com...]

GET /favicon.ico HTTP/1.1
Host: www.myotherdomain.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Accept: image/png,*/*;q=0.5
Accept-Language: tr-TR,tr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-9,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: PHPSESSID=c92482e4314f22d51ae0301e47292f8d

HTTP/1.x 404 Not Found
Date: Mon, 13 Oct 2008 12:40:36 GMT
Server: Apache/2.0.53 (RHEL)
Content-Length: 296
Keep-Alive: timeout=5, max=500
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

********************************************************************

so i do not understand what is wrong?