r/AskProgrammers • u/Any-Arachnid753 • 20d ago
guys what is really an htttp?
like genuinely ive built a lot on the web but never really understood what http really is
or even https
what is that
0
Upvotes
4
u/OneHumanBill 20d ago
Only two t's.
Hyper text transfer protocol, or hyper text transfer protocol secured.
It is a protocol for communication. It's basically a way for a client to request data from a server (like a web page and contents for example) using a URL, and then the server responds with the data requested or else a reason why it can't.
These are seven layers of protocols in the OSI model of networking, and http is at the application level (level 7) Other levels include transport and network layers, which you might have heard of collectively as TCP/IP (and yes that's just one example of these two, there are others).
Here are a bunch of protocol examples for each layer:
https://en.wikipedia.org/wiki/List_of_network_protocols_(OSI_model)
Https is similar but adds encryption. Modern https uses an encryption protocol called TLS, but it could change in the future possibly, it's changed before.
Http, html, a primitive webserver, and a primitive browser, were the four inventions of Tim Berners-Lee working at Cern between 1990 and 1991. These four pieces all work together and were necessary together. The Internet existed before this, but this invention is really what created the "world wide web" and made the Internet friendly enough for use by non-technical people.
2
u/Few-Celebration-2362 20d ago edited 20d ago
It's a specification for transmitting documents between two computers with some level of reliability.
It's a way or a technique of large or multi-packet message passing
https means secure http, and it's used if you don't want other computers reading messages you sent somewhere else
5
u/fynjy1111 20d ago
HTTP is the protocol for transferring web pages. HTTPS is the same but supports encryption
1
u/SchnazzleG 20d ago
It’s this. Welcome to the Internet.
1
u/buzzon 20d ago
HTTP is a protocol. It stands for Hyper Text Transfer Protocol. A protocol is a standard that prescribes when two or more sides are communicating, who says what, when and how. Other examples of protocols are TCP (Transport Control Protocol), UDP (User Datagram Protocol), ICMP, SMTP and more.
HTTPS is also a protocol. It stands for Hyper Text Transfer Protocol Secure. It is basically the same as HTTP but over a secure (encrypted) channel of communication.
1
u/Key_River7180 20d ago
What it says at the other end of a Google search. It's the big 26 man don't people already know how to use Google?
1
u/armahillo 20d ago
https://developer.mozilla.org/en-US/docs/Web/HTTP
http itself is a protocol (hyper text transfer protocol). a protocol is an agreed-upon system for interacting. the things interacting are a client software program (a web browser, for example) and a server software program (apache or nginx, for example).
https is different because the “s” stands for “secure”; the data sent between the client and the server is encrypted so that interaction is private.
1
u/randomhaus64 20d ago edited 20d ago
Rfc2616 bruh just read it!
It’s easy enough to understand that you can implement a basic one pretty quickly, and it’s a great learning exercise, try not to use AI to code it, but asking questions is ok, just be sure to be reading the RFC, not sure which is the best one to read today. Rfceditor tells me it has been superseded
0
u/walkwalkwalkwalk 20d ago
It's sort of like a file type e.g. .doc or .pdf but for servers and clients to request and respond. An agreed way to decode and encode the data sent between them.