I'm new to website development, and I'm trying to understand the purpose of the HTTP request types. Can anyone explain what this type is and what it's used for?

Can anyone give me a more detailed explanation of the HTTP request types and their purpose?

Thanks!

Recommended Answers

All 5 Replies

Google is your friend - The purpose of HTTP request types

The methods - HTTP request methods

HTTP defines a set of request methods to indicate the desired action to be performed for a given resource. Although they can also be nouns, these request methods are sometimes referred to as HTTP verbs. Each of them implements a different semantic, but some common features are shared by a group of them

More methods available - Available HTTP Methods

The primary or most commonly-used HTTP methods are POST, GET, PUT, PATCH, and DELETE. These methods correspond to create, read, update, and delete (or CRUD) operations, respectively. There are a number of other methods, too, but they are utilized less frequently.

Only ever heard of POST and GET. The others either have no use or is very specialised.

a GET request puts the variables in the URL link - so the data is very visible.

a POST request puts the data hidden in the headers of the request

You use GET for simple passing across ID's or directing someone to a page

You use POST for form data and more sensitive or bigger amounts of data

Like i said, I've never heard of the others after 20 years of working in web development. Could be something useful, looks like the purpose has been replaced by AJAX Post/Get requests at a guess.

The others either have no use or is very specialised.

I use PUT/PATCH/DELETE almost daily. Most REST API's have these implemented.

Hello this is Gulshan Negi
Well, there are various types of HTTP requests, but you need to know about the most commonly used and common HTTP request types, which are listed below:
GET: Receive a resource from the server.
POST: Submits information to the server, commonly utilized for making or refreshing assets.
PUT: Updates a resource on the server by replacing the entire resource.
DELETE: Deletes a resource on the server.
PATCH: Completes server-side updates to a resource.
Head: Retrieves response headers without the content.
Options: Retrieves information about available communication options for a resource or server.
I hope you will get some basic ideas.
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.