HTTP 405 Error – Method not allowed (methods not allowed)

Source: Internet
Author: User

Introduced

The HTTP protocol defines methods to indicate the actions that need to be performed on the WEB server to obtain the specific URL resources specified by the client (such as your browser or our CheckUpDown robot). Then these methods are as follows:

    • options: Find communication options that apply to a specific URL resource. Allows the client to determine the options and/or requirements associated with the resource, or the performance of a server, without the need to perform specific actions involving data transfer.
    • Get (GET): Retrieves information determined by the URL resource, such as getting a specific page or picture. This is the most common method.
    • head: Basically the same as get (get) except that the server only feeds back the header information rather than the information itself as determined by the URL resource. Can be used to get the meta information (metainformation) of the response entity required by a request without transmitting the response entity itself. Often used to test the validity, accessibility, and recent modification of hypertext links.
    • POST: Submit data to a WEB server, such as 1) in a bulletin board, newsgroup, or mailing list, 2) provide input data-usually by a public gateway Interface (CGI) table, to a data processing process, 3) directly add records into a database.
    • put (placement): Sets the data for a specific URL (placed/replaced) into new data submitted by the customer. For example, upload a new Web page to the server.
    • Delete: Deletes data related to the URL resource. For example, delete a Web page.
    • Trace (trace): A remote application-level loopback that runs the request information. is actually a ' ping ' to test what data the WEB server is receiving from the client.
    • Connect: reserved for use with a proxy server and tunnel (such as SSL). This method is only defined in HTTP version 1.1, but not in the previous version 1.0.

All WEB servers can be set to allow or disallow any method. For example, if a Web server is ' Read Only ' (the client cannot modify the URL resource on the WEB server), it can be set to disallow the PUT and DELETE methods. Similarly, if no user input is available (all pages are static), then the POST method can be set to disallowed. Therefore, a 405 error may occur because the WEB server is not set up to accept input data from the client. Also, this error can occur if the client does not have sufficient power to the specific URL resource specified in the request.

HTTP 405 Error – Method not allowed (methods not allowed)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.