IIS on failed Windows 7: 400 request when requesting XML files

I have a website running IIS on Windows 7. Every time a web page requests an XML file, I get 400 Bad Request (diagnosed through firebug). If I request the XML file directly by entering it into my browser, it will work.

This happens not only for file extensions .xml, but also .xsl; both of which contain XML data.

+1
source share
2 answers

I found a problem.

When requesting XML files, I added a header If-Modified-Sincethat is in the HTTP specification, but IIS in Windows 7 seems to return 400 Bad Requestwhen it is added. Just removing this header from the request fixes the problem.

+3
source

xml ?

, :

() GET. - POST? , POST XML .

IIS .xml.

+1

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


All Articles