반응형
Networking Terms
- Data: (Usually in the raw form) anything that is sent over the network.
- Client:
- Server:
- HTTP: Hypertext Transfer Protocol
- HTTPS: HTTP Secure,
Requests and Responses
A HTTP response consists of a body and a status code.
- Body: Content of a response (such as the HTML that makes up a webpage
- Status code: 3 digit number signaling the type of response (success, failure, etc.)
HTTP Verbs
HTTP verbs, also known as methods correspond to the different types of network requests.
- GET: Retrieves data from the server, such as getting a list of search results.
- POST: Submits data to be stored in the server, such as when submitting a form.
- PUT: Updates data on the server, replacing the old data with the new data.
- PATCH: Updates data on the server, by changing specific values.
- DELETE: Used when removing data from the server.
HTTP Status Codes
HTTP status codes fall into 5 ranges based on the type of response.
- 100: Informational response (request has been received by the server but is not finished yet)
- 200: Successful response (request has been processed and completed by the server)
- 300: Redirection (client needs to do something to complete the request)
- 400: Unsuccessful (problem with the client's request)
- 500: Unsuccessful (problem with the server)
반응형