Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multipart request not send correctly? #26

Closed
jarrodek opened this issue Nov 25, 2015 · 2 comments
Closed

Multipart request not send correctly? #26

jarrodek opened this issue Nov 25, 2015 · 2 comments
Assignees

Comments

@jarrodek
Copy link
Owner

Originally reported on Google Code with ID 28

Here is a sample POST request :

Headers (the content-type is added to the content-type drop list) :

Content-Length: 295 
Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo 
Content-Type: multipart/form-data; boundary=todoLALALA 

And body:

--totoLALALA
Content-disposition: form-data; name="field1"

This is implicitly typed plain ASCII text.
--totoLALALA
Content-disposition: form-data; name="pics"; filename="file1.txt"
Content-Type: text/plain

his is explicitly typed plain ASCII text. 
It DOES end with a linebreak.
--totoLALALA--


I don't know what's happening but the exactly same setup on Firefox "HTTP Resource
Test" work as expected, but this one not (I send this request to a php file, var_dump($_FILES)).

The file tab is working well too, but I want to write my multipart/form-data request
manualy.

Thx for your work!

Reported by dalexandre@clever-age.com on 2011-11-25 10:23:28

@jarrodek jarrodek self-assigned this Nov 25, 2015
@jarrodek
Copy link
Owner Author

It's happening because Content-Type header is overwritten by value from content type
select box. Actually, I don't know why it is happening. It's my mistake.
I will correct this issue, do some tests and will send update to web store.

Thanks for reporting this issue!  

Reported by jarrodek on 2011-12-06 11:24:30

  • Status changed: Started
  • Labels added: Priority-High
  • Labels removed: Priority-Medium

@jarrodek
Copy link
Owner Author

Reported by jarrodek on 2011-12-06 13:37:50

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant