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:
Transferred from: http://www.cnblogs.com/SilenceTom/p/6697484.htmlThe calling interface encountered an error Response for preflight have invalid HTTP status code 405 , which was to use the Put method to submit the request interface. The Content-type
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:
Example 1: Send a POST request to an HTML static page on the Apache server with the Curl command under Linux
Copy Code code as follows:
[Root@localhost ~]# curl-d 11=1 http://www.jb51.net/index.html
405 Method Not allowed
Using the Post method to request a static file such as JS, HTML the General Web server will return 405 Method not allowed.I test the Web server with IIS (WINDOWS10+IIS10), in theory, get method can request, the Post method should also be able to do
Example 1: Use the curl command in linux to send a POST request to the HTML static page on the Apache server
Copy codeThe Code is as follows: [root @ localhost ~] # Curl-d 11 = 1 http://www.jb51.net/index.html
405 Method Not Allowed
Method
HTTP Status Response code explanation/DaquanThe HTTP status code is a 3-bit numeric code that represents the HTTP response status of the Web server. It is defined by the RFC 2616 specification and is extended by RFC 2518, RFC 2817, RFC 2295, RFC 2774
I. Request (Requests)Request:An application request is represented by a Yii\web\request object that provides information such as a request parameter (a translator note: Usually a get parameter or post parameter), HTTP headers, cookies, and so on. By
First, I used the symfonyhttp-foundation component. Ajax request end: {code...} php response end: {code...} nginx configuration: {code...} This is returned
First, I used the symfonyhttp-foundation component.
Ajax request end:
$.ajax({ url: jsui.
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.