Just did a download other Web services under the CSS file referencing pictures of the small program, but the beginning of the download down the picture how can not open. I was so depressed that I couldn't think of anything. Carefully check the program many times (because the program code is less), always can not find what is wrong. Later, I printed the returned content and found it was 405 wrong.
As for why this error occurred, I am not very clear, I suspect that the server limited the right to direct access to resources, but I measured in the browser, but the normal display. So I went to Baidu for a while, and then saw such a passage:
"Most Web servers, such as Apache, IIS, and Nginx, do not allow static files to respond to post requests, or they return" http/1.1 405 not allowed "errors. ”
It was only then that I realized that my request had been sent out on a post basis. After you change post to get my program is done.
--In addition to study, remember a pen