What is HTTP?

HTTP is the set of rules that web browsers and servers use to send requests and responses to each other across the internet.

HTTP stands for Hypertext Transfer Protocol. Every time you visit a website, your browser sends an HTTP request to a server, and the server sends back an HTTP response. The page you see is just the result of that conversation, possibly repeated dozens of times to load all the images, fonts, and data.

Every HTTP request has a method that says what kind of action you want. GET means "give me this thing", POST means "create something new", PUT and PATCH mean "update", and DELETE means what you would expect. Each response comes back with a status code, like 200 for success or 404 for not found.

When you build with AI tools, you will spend a lot of time looking at HTTP requests, both in the browser and in code. Most APIs are just dressed-up HTTP requests with JSON inside.

Example

GET https://api.wecodetraining.com/workshops
-> 200 OK
-> [{ "slug": "basics", "title": "WeCode AI Basics" }, ...]

Related terms

Want to use HTTP in real work?

WeCode workshops are built around AI coding tools. Pick a tier, or browse more glossary entries to get the lay of the land.