Networking - Programming Language (MCQ) questions for Q. 11943

Q.  Which of the following are the HTTP methods (request types)?

I. GET
II. POST
III. PATCH
IV. BODY
V. CREATE
VI. OPTION

- Published on 19 Oct 15

a. I, II, III, IV, V
b. I, II
c. IV, V, VI
d. I, II, III, VI

ANSWER: I, II, III, VI
 

    Discussion

  • Prajakta Pandit   -Posted on 13 Oct 15

    - The HTTP request method is a command or a request issued by the client to the server.

    - It defines different kinds of messages referred to a request type or methods.

    - The HTTP method is supplied in the request line and specifies the operation that the client has requested.

    - Following are the important HTTP methods:

    - GET is used to retrieve information from a specified URL. This is the main method used for document retrieval.

    - POST is used by the client to send the data to the server.

    - PATCH is used by the client for providing a new or replacement document to be stored on the server, but there is one change the request contains a list of differences which should be implemented in the existing file.

    - OPTION is used by the client to ask the server about various available options. The client can specify a URL for the OPTIONS method or an asterisk (*) to refer to the entire server.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)