Click to See Complete Forum and Search --> : Error : HTTP 400 Bad request


Anon
12-07-2001, 06:42 AM
Hi,

I have this error message displayed in some cases.

I use php 4.0.6 and have written a script to display a database content divided in some pages (20 articles per page, the number of pages depending on the number of selected articles).

Below the list of articles are the links to the other pages. Its the same script that is used just giving the page number as a parameter. (a href='./script.php?page=x').

It was developped at home under Win95, php 4.0.6 and Xitami Web Server. Tested with Netscape 4.5. Everything worked well.

Then, I installed it on my office web server (NT4, IIS4, php4.0.6).

Everything works fine on the NT server using IE4. Works fine too on Win98/IE4.

The problem comes with Nescape... The first page is well displayed but when I choose page x, I get this error message.

I tried with Netscape 4.72/Linux, 4.7/Win98 and have the same problem. Netscape 6.1/Win98 works well.

Does someone have a tip to make it work with any browser.

Regards,
Fabrice.

Anon
12-07-2001, 08:39 AM
Ok, I solved this problem.

Log files were useful to point me in the righ direction.

The problem comes from the combination of browser/server. Does not seem to be Netscape because it worked with Xitami Web Server and I can't tell it's IIS because it works with IE.

So, what happend is that I had spaces in some parameters given in the URL (ex ./script.php?page=2&author=ASIMOV I.&...).

The URL were cuted at the space character. Replacing spaces by %20 in the URL solved the problem.

Hope it can help someone else.

Fabrice.