0% found this document useful (0 votes)
32 views

HTTP Document

HTTP headers provide metadata about HTTP requests and responses. Common request headers include Accept, User-Agent, and Authorization. Common response headers include Cache-Control, Content-Type, and Set-Cookie. Headers can be used for authentication, caching, content negotiation, and security. HTTP defines methods like GET, POST, PUT, DELETE to interact with resources on the server. Status codes indicate the result of the request, with 2xx codes for success, 3xx for redirection, 4xx for client errors, and 5xx for server errors.

Uploaded by

bsf2105191
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

HTTP Document

HTTP headers provide metadata about HTTP requests and responses. Common request headers include Accept, User-Agent, and Authorization. Common response headers include Cache-Control, Content-Type, and Set-Cookie. Headers can be used for authentication, caching, content negotiation, and security. HTTP defines methods like GET, POST, PUT, DELETE to interact with resources on the server. Status codes indicate the result of the request, with 2xx codes for success, 3xx for redirection, 4xx for client errors, and 5xx for server errors.

Uploaded by

bsf2105191
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

HTTP Course

Text Transfer Protocol


Hyper

Choudhary
By Hitesh
:

-
=>

What are HTTP headers

metadata ->
key-value sent
along with

request p response

authentication state
caching manage
->
,

(X-deprecated)
,

X-prefix -> 2012

Request Headers -> from Client


·
Response Headets -> from Server
·
Representation Headers ->
encoding/compression
·

Payload Headers -> data


Headers
common CRS u

Accept application/ison
:
Access -

Control Allow Origin


-
-

User-Agent Access Control Allow


- - -

(redentials
Method
·

Authorization Access Control - -


Allow -

·Content
Type
-

Cookie
·

Security
-

Cache Control
-
-

Cross-Origin Embedder Policy-


-

Cross Origin-Openes Policy


- -

Content
Security Policy
1
- -

X-XSS -
Protection
HTTP methods
Basic set of operations that can be used to interact
with server

GET : settiere a resource


·HEAD : No
message body (response Leaders only)
·
OPTIONS : What operations are available
·
TRACE :
loopback test
/get same data)
·
DELETE :
remove a resource
·

PUT "
replace a resource

· POST :

interact with resource


(mostly add)
·
PATCH :

change part of a resource


HTTP Status Code
·
1XX Informational
·
IXX Success
·
3xx Redirection
·
4xx Client estor

·
5xx Setter effor

100 Continue 400 Bad request


102
Processing 401
Unauthorized
200 Ok 402 Payment required
201 created 404 Not Found
201 accepted 500 Internal Server Error
307 temporary redirect 507 Gateway time Out
308 betmanent redirect

You might also like