Closed PangYenChen closed 3 years ago
Thanks for the bug report @PangYenChen. I'm able to reproduce the bug when uploading the file with multipart/form-data 👍
I'm going to fix it and send a BETA build this week 🌮
Hey @PangYenChen, there are two possible solutions:
I tried to perform the "copy as a cURL" with Charles and Fiddler, and the result is:
curl -H 'Host: httpbin.org' -H 'user-agent: insomnia/2021.3.0' -H 'content-type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY' -H 'accept: */*' --data-binary "--X-INSOMNIA-BOUNDARY
Content-Disposition: form-data; name=\"file\"
proxyman.png
--X-INSOMNIA-BOUNDARY
Content-Disposition: form-data; name=\"body\"; filename=\"Screen Shot 2021-05-24 at 09.00.12.png\"
Content-Type: image/png
�PNG
IHDR � $9�P DiCCPICC Profile (�c``H,(�aa``��+)
rwR���R`��� ��� Π��\\��T� �Q��k� ��.�,��\{'�x�!���Yɣݘ�Q WJjq2���)�E%� @�ryI��d�d� ��!�5 v�} �&$�Ⱦd$g$� �O�l�$$�t$6�^�|�<\�L� 8�TP�ZQ���*�2�3J�!��������`d`d��
o��ρ�pd;��_��`yB,i&��V�[1�����v� �(� �o,�i�F6����?�10�Of`�;���ߋ����h��y �ao��`� �eXIfMM * > F( �i N � � �� x� �� ASCII Screenshot�6� pHYs % %IR$� �iTXtXML:com.adobe.xmp <x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 6.0.0\">
<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">
<rdf:Description rdf:about=\"\"
xmlns:exif=\"http://ns.adobe.com/exif/1.0/\">
<exif:PixelYDimension>288</exif:PixelYDimension>
<exif:PixelXDimension>640</exif:PixelXDimension>
<exif:UserComment>Screenshot</exif:UserComment>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
I�c� iDOT � ( � � ưq� �IDATx�ܱ� C���؉�/���?t����Z�� @� d���ZP @��0 @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��x��?�� 0 Ce�J� ��� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� @7@� � ����%@� �n� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� @7@� � ����%@� �n� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @`�km @� �ӵ� @� �#` : @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� @7@� � ����%@� �n� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� @7@� � ����%@� �n� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �����@� �0 ;]KJ� 8�C @� ��X�� @� @7@� � ����%@� �n� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� @7@� � ����%@� �n� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� @7@� � ����%@� �n� 0 c��K� �Z @�@G� �t-) @��� 0 c��K� 0 � @ &` �
� ` � @�@L� �.. @� t @� ���+\\ @��� @� 10V�� @� �
@� b`�pq @� � @� ��X�� @� >
Proxyman version? (Ex. Proxyman 1.4.3)
2.25.0 (22500)
macOS Version? (Ex. mac 10.14)
10.15.6(19G2021)
Steps to reproduce
Upload an image using form data format, and Proxyman gui click "copy curl".
Expected behavior
Get the curl with form data format body.