Closed Bug 132985 Opened 22 years ago Closed 22 years ago

POST submission with only submit button fails

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 129333

People

(Reporter: george_lund, Assigned: alexsavulov)

References

()

Details

Submitting a form using the POST method, that only contains a submit button,
fails with the following error message:

request#no_content_length

As far as I know such a form is allowed; the form works fine in Internet Explorer.
reporter: wich build are you using?

wfm 2002020415 on linux
WFM on linux too, if this is indeed a bug, it seems to be a windows-specific one.
I do suspect that this might be an issue with the server side of things.

Reporter: can you supply a testcase?

I created a php script which submitted to itself, and that worked regardless
of name/value on the submit or lack thereof.
WFM
build id: 2002032203
OS: Windows 2000
George, which build are you using?
Sorry to have been so long in repsonding; my Hotmail account was having problems.

To respond to the questions: I thought Bugzilla included details of the build I
was using automatically, sorry: 0.9.9 anyway.

The URL given above is the test case, and the response that is received upon
pressing the submit button is "Invalid Request". Here it is again:
<http://lundbooks.co.uk/test.php>

However I am beginning to think this may be a problem with our web server rather
than Mozilla. Of course I would be grateful if anyone could let me know if that
is the case - and what to do about it! Thing is - it does work fine in IE.

Thanks
George, you're going to have to provide more information on steps to reproduce 
and especially on how to tell a successful submission from a failed one.  When 
I submit with a current Linux trunk build I get no error message but just the 
test.php page again.
Well if this can't be pinned down then so be it. It could be something peculiar
to our connection (tho' I did try with two different ISPs and via a proxy
server). The full message I get is:

request#no_content_length
-------
Description: Unable to process request for URL"http://lundbooks.co.uk/test.php".
-------

If I use a proxy server I get that proxy server's custom error response,
indicating that Mozilla sent an "invalid request". As I say, in IE there's no
error message, the page is just reloaded as you would expect (and as you seem to
get in Mozilla). We run Windows 2000. Sorry I can't think of anything else that
might explain it!
the form wfm with a cvs build from today on win2k. I get the same results in 
mozilla as I do in IE6.
Ah.  Of course.  "request#no_content_length" means the request has no
content-length header....

Duplicate of "Submitting form creates bad request according to squid" (we were
not putting content-length on some requests, fixed March 12).

*** This bug has been marked as a duplicate of 129333 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.