The HTTP protocol defines methods to indicate the actions that need to be performed on the Web server to obtain specific URL resources specified by the client, such as your browser or our Checkupdown robot. These methods are as follows: Options:
Introduction HTTP defines some methods to specify the actions that need to be performed on the Web server to obtain the specific website resources specified by the client (such as your browser or our checkupdown robot. These methods are as follows:
The vast majority of web servers such as Apache, IIS, and nginx do not allow static files to respond to POST requests. Otherwise, the error "HTTP/1.1405Methodnotallowed" will be returned. Example 1: Use the curl Command in linux to send a POST
405 error in web development, web405
In web development, errors of 405 may occur in the following situations;
1. The request method at the frontend does not match that at the backend:
For example, if the backend uses the post method, and you use
There are several situations in web development where 405 of errors occur;1 The way the front-end request does not match the background:For example, in the background through post, and you in the front-end with Get method will appear 405 error. So
Example 1: Sending a POST request to an HTML static page on the Apache server with the Curl command under Linux[Email protected] ~]# curl-d 1=1 http://www.sohu.com/index.html405 Method not allowedmethod not allowedThe requested method POST is not
I recently maintained a RedHat 5.4 X64 system. The environment is Nginx. When running a forum, I need to submit POST data to the HTML page. All the results are intercepted and an error is displayed: "nginx 405 Not Allowed" is almost no good solution.
The vast majority of web servers such as Apache, IIS, and nginx do not allow static files to respond to POST requests. Otherwise, an "HTTP/1.1 405 Method not allowed" error will be returned.Example 1: Use the curl command in linux to send a POST
PHP restler 405 Method Not allowed problem solved, restlerallowed
In the study of Restler 3, in the see example curd, with Firefox rest client use get,post can, but with Put,delete appeared,
Find information on the Internet, in Microsoft Bing and
Error Tip:
-------------------------------------------------------
HTTP Error 405-The HTTP action used to access the page is not licensed.
Internet Information Services (IIS)
Technical information (provided for technical support staff)
* Go to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.