You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Content-Disposition header should conform to rfc2231. So this should rather be: Content-Disposition: form-data; name="file_field"; filename*=UTF-8''%E5%A4%A9%E7%8B%97.png
You can generate the proper encoded filename in accordance with rfc2231 using the perl command line perl -MEncode -MURI::Escape::XS -lE 'say URI::Escape::XS::uri_escape( Encode::decode_utf8("天狗.png") )'
…
Debug output
Please re-run the command with --debug, then copy the entire command & output and paste both below:
$ http --debug <COMPLETE ARGUMENT LIST THAT TRIGGERS THE ERROR><COMPLETE OUTPUT>
Additional information, screenshots, or code examples
…
The text was updated successfully, but these errors were encountered:
Checklist
Minimal reproduction code and steps
天狗.png
https --offline --multipart https://example.org name='John Doe' file_field@/home/john/天狗.png
> /tmp/httpie_result.txtCurrent result
The
Content-Disposition
header generated will be something like:Content-Disposition: form-data; name="file_field"; filename="天狗.png"
…
Expected result
The
Content-Disposition
header should conform to rfc2231. So this should rather be:Content-Disposition: form-data; name="file_field"; filename*=UTF-8''%E5%A4%A9%E7%8B%97.png
You can generate the proper encoded filename in accordance with rfc2231 using the perl command line
perl -MEncode -MURI::Escape::XS -lE 'say URI::Escape::XS::uri_escape( Encode::decode_utf8("天狗.png") )'
…
Debug output
Please re-run the command with
--debug
, then copy the entire command & output and paste both below:Additional information, screenshots, or code examples
…
The text was updated successfully, but these errors were encountered: