Closed
Bug 1459155
Opened 7 years ago
Closed 7 years ago
Content-Length incorrect when re-sending POST requests containing files
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1434553
People
(Reporter: mhorrocks91, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20180427210249
Steps to reproduce:
1. Create an HTML form to upload a file.
2. Select a file and submit the form.
3. The file is uploaded correctly. Press F5 to refresh the page. Click 'Re-send' to resend the POST data.
4. Webserver displays a request error.
Actual results:
* This is the re-sent POST request - the request data is correct but the Content-Length field value is wrong *
HEADER:
Content-Length: 268
DATA:
-----------------------------15502369427209
Content-Disposition: form-data; name="mode"
upload_export_confirm
-----------------------------15502369427209
Content-Disposition: form-data; name="upload_export_file"; filename="test.txt"
Content-Type: text/plain
A sample text file.
-----------------------------15502369427209
Content-Disposition: form-data; name="submit"
Upload Export
-----------------------------15502369427209--
Expected results:
* This is the first POST request - this works correctly *
HEADER:
Content-Length: 445
DATA:
-----------------------------15502369427209
Content-Disposition: form-data; name="mode"
upload_export_confirm
-----------------------------15502369427209
Content-Disposition: form-data; name="upload_export_file"; filename="test.txt"
Content-Type: text/plain
A sample text file.
-----------------------------15502369427209
Content-Disposition: form-data; name="submit"
Upload Export
-----------------------------15502369427209--
Reporter | ||
Comment 1•7 years ago
|
||
Duplicate bug found.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Component: Untriaged → HTML: Form Submission
Product: Firefox → Core
Assignee | ||
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•