Why is Firefox prompting to download a file that is POST'd to?
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-05-12T23:38:21Z
Indexed on
2010/05/12
23:44 UTC
Read the original article
Hit count: 267
This is the most peculiar thing.
It is from an old in house CMS.
When I attempt to submit my changes, it prompts to save the file linked in the action
attribute of the form.
Headers
Request
POST /~site/edit/articles/article_save.php?id=54 HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://example.com
Content-Type: multipart/form-data; boundary=---------------------------10102754414578508781458777923
Content-Length: 940
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="title"
Home Content
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="catid"
18
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="activecheck"
1
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="image"
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="contentWidgToolbarSelectBlock"
<p>
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="content"
<p>Edit your article in this text box.</p>
-----------------------------10102754414578508781458777923
Content-Disposition: form-data; name="contentWidgEditor"
true
-----------------------------10102754414578508781458777923--
Response
HTTP/0.9 200 OK
And then Firefox shows....
I can't determine from the response headers as to why this is prompting to open/save. It has always worked. All other PHP files on the site work fine.
Anyone have a clue?
Thanks
Update
Apparently, it just crashes Safari.
© Stack Overflow or respective owner