Why is Firefox asking me to download the POST'd file?

This is the most unusual thing.

This is from an old in-house CMS.

When I try to submit my changes, it suggests saving the file associated with the actionform attribute .

Headings

Inquiry

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

answer
HTTP/0.9 200 OK

And then Firefox shows ....

Firefox
(source: alexanderdickson.com )

I cannot determine from the response headers why this causes opening / saving. It always worked. All other PHP files on the site work fine.

Does anyone have a clue?

Thanks

Update

Apparently this is just a Safari crash.

I added the image to the CMS article and for some unknown reason it was saved correctly. I can’t explain why.

+3
2

, - , HTTP/1.0 +, HTTP/0.9, , .

, HTTP/0.9. Content-Type HTTP/0.9, , , application/octet-stream .

? :

Content-Length: 940
-----------------------------10102754414578508781458777923

. .

( - , - Windowsy CRLF LF, HTTP/MIME.)

+4

HTTP/0.9? , . HTTP/1.0

+1

Source: https://habr.com/ru/post/1745201/


All Articles