HTTP
● Hypertext Transfer Protocol
● An application protocol to transfer hypertext.
● A client sends a request to the server and server replies with a response. Often, the client is a browser.
● Default port: 80
HTTPS
Hypertext Transfer Protocol Secure.
● Is an extension of HTTP.
● Used for secure communication.
● Default port: 443.
● Encryption using SSL/TSL.
○ SSL - Secure Sockets Layer.
○ TSL - Transport Layer Security.
Hypertext/Hypermedia
● Hypertext is a node based text that contains hyperlinks. A hyperlink is a reference to data, that client can easily get (e.g. by clicking).
● Hypermedia is super-set of Hypertext - it contains more features (like audio, video, graphics).
URL – Uniform Resource Locator
Identifies a resource by its location.
● Protocol (http/https/ftp/file/etc.)
● Domain name.
● Optional port number (default port for http protocol is 80).
● Path.
● Optional query and or a fragment preceded by an hash - additional parameters can be passed.
URL Example
protocol domeniu port parametri fragment
HTTP Request
HTTP methods
Request methods
HTTP method | Request has body | Response has body |
---|---|---|
GET | NO | YES |
POST | YES | YES |
PUT | YES | YES |
DELETE | NO | YES |
Niciun comentariu:
Trimiteți un comentariu