Open Bug 1407616 Opened 7 years ago Updated 1 year ago

Edit and Resend functionality ignores request Content-Type charset for POST body encoding

Categories

(DevTools :: Netmonitor, defect, P3)

56 Branch
x86_64
Linux
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: dmytrychenko.oleh, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171003100843

Steps to reproduce:

Set request method to POST.
Set request header: Content-Type: application/json; charset=utf-8
Particular MIME-type didn't make any difference for me.
Populate Request Body with data containing non ISO-8859-1 characters, for instance {"data":"€10"}


Actual results:

Request Body is sent as {"data":"¬10"}


Expected results:

Request Body is sent in original form as {"data":"€10"}
Possible work-arounds:
Select existing request and use 'Copy as cURL' functionality. Submit cURL request with correct POST data.
For example: curl 'example.com' -H 'Content-Type: application/json; charset=utf-8' --data '{"data":"€10"}'

Another option is to use utf code points in place of symbols which are being malformed on POST.
For example: {"data":"\u20ac10"}
Component: Untriaged → Developer Tools: Netmonitor
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Issue reproduced on Ubuntu 17.04 x64 and Windows 10 x64.
Product: Firefox → DevTools
Severity: normal → S3

Headers of FIREFOX downloading AI file from E-mail client - resulting file saved as PS

Headers of CHROME downloading AI file from E-Mail - resulting file is AI

How it looks after download on HDD, Firefox is on left and Chrome on right side

Headers of FIREFOX downloading AI file from google drive - resulting file saved as AI

Please can someone delete the pictures? I have uploaded to wrong bug and can not find a way how to delete, apologize for this.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: