HTTP Request LineHTTP Request Headers(empty line)HTTP Request BodyHTTP Response LineHTTP Response Headers(empty line)HTTP Response BodyMETHOD PATH PROTOCOL"GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCHHTTP/1.1GET /images/logo.png HTTP/1.1
NAME: VALUE"*[A-Za-z0-9][A-Za-z0-9-]+Host: en.wikipedia.orgUser-Agent: Mozilla/5.0 Firefox/64.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8Accept-Language: en-GB,en-US;q=0.8,en;q=0.6,fr-FR;q=0.4,fr;q=0.2Accept-Encoding: gzip, deflate, brConnection: keep-aliveCookie: Auth=8QXA5fSQeZAEKZVG6iRjMWvQ8KtQKAaj
POST or PUT, the request may be followed by a body. It can be a file or a specific form of data.Content-Type header must be filled with a MIME type to indicate the type of content. \n).PROTOCOL STATUS REASONHTTP/1.1HTTP/1.1 200 OKHTTP/1.1 404 Not Found
NAME: VALUE"*[A-Za-z0-9][A-Za-z0-9-]+GET: used to retrieve a resource. Has no request body.POST: used to submit a new resource (path) or send data. Usually has a body.HEAD: used to preview the result of a GEToperation. Has no request body and no respond body.PUT: used to submit an update to an existing resource DELETE: used to delete the specified resourceTRACE: echoes the received request for tracing purposesOPTIONS: verify the server supports a specified request (see Preflight requests)CONNECT: used by HTTPSPATCH: allows partial modification of a resource|
Accept
|
List of MIME types supported
|
|
Accept-Language
|
List of languages read by the user
|
|
Content-Length
|
Length in bytes of the request body
|
|
Content-Type
|
MIME type of the request body
|
|
Cookie
|
List of cookies stored by the client
|
|
Host
|
Host name of the website
|
|
User-Agent
|
Identification string for the web browser
|
|
1xx
|
Informational
|
|
100
|
Continue
|
|
2xx
|
Successful
|
|
200
|
OK
|
|
201
|
Created
|
|
202
|
Accepted
|
|
204
|
No Content
|
|
3xx
|
Redirection
|
|
301
|
Moved permanently
|
|
302
|
Found
|
|
304
|
Not Modified
|
|
308
|
Permanent Redirect
|
|
4xx
|
Client Error
|
|
400
|
Bad Request
|
|
401
|
Unauthorized
|
|
403
|
Forbidden
|
|
404
|
Not Found
|
|
405
|
Method Not Allowed
|
|
5xx
|
Server Error
|
|
500
|
Internal Server Error
|
|
502
|
Bad Gateway
|
|
503
|
Service Unavailable
|
|
504
|
Gateway Timeout
|
Cache-Control: Indicates client caching conditionsContent-Length: Length of the response body in bytesContent-Type: MIME type of the response bodyExpires: Client is allowed to keep the resouce in cacheLocation: Redirection URLServer: name of the server softwareSet-Cookie: new cookies that should be stored client-sideContent-Length header with the size (in bytes) of the body that is to come. Transfer-Encoding: chunked header and to follow the Chunked transfer encoding protocol.Accept and Content-Type headers use MIME types to specify the type of message content.text/plain, text/html, application/xml, application/json, application/octet-stream, text/css, text/javascript...image/jpeg, image/png, audio/mpeg, application/pdf, application/zip, font/woff, video/mp4...multipart/mixed, multipart/form-data, multipart/byteranges, application/x-www-form-urlencoded...text/plain;charset=UTF-8Content-Type: text/plain;charset=utf-8
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.