Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

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.

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

Error in posting multipart/form-data. Content-Type header is missing boundary #191

ghost opened this issue Jan 28, 2013 · 10 comments

Error in posting multipart/form-data. Content-Type header is missing boundary #191

ghost opened this issue Jan 28, 2013 · 10 comments

Comments

ghost commented Jan 28, 2013

Hi, I discovered that the Content-Type header is not setting the boundary when form is posted using the extension.

In extension, I set the header as Content-Type: multipart/form-data

When request is posted, extension need to append boundary like below to the header before request is sent to the server.

Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryzuW5nPZQFQCwQtg4

To reproduce, use extension to post multipart/form-data with two form values like one with JSON text and other an image file. Then monitor traffic (I monitored in Fiddler) to see the headers. Header appears without boundary and server (ASP.NET) is not recognizing the form.

When I posted same data using simple HTML form, it is appending boundary to the Content-Type like above and server is handling the request properly.

The text was updated successfully, but these errors were encountered: