HTTP protocol Flashcards
Client server communication is fascilitated with
HTTP
Used to exchange text documents
Rest API
Used to define the api that the server expose and which the client can use to communicate with the server
………….. is a higher level protocol
SOAP
Clinet sends a request
Usually contain a method either get/put/post/delete
Server response
Http request message
Contain atleast 3 major parts
Request line - specifies the details of the request message
Headers - additional information
Blank line
Body - contain actual data - may be blank
Request line
Method - get/put/post/delete….
Url
Version - for http
Header
Header field name : value Host Connection User-agent Accept-encoding
Body
Xml, json
Response message
Status line - response code
Header
Blank line
Response data
200
Ok
201
Created
301
Moved permanently
304
Not modified
400
Bad request
401
Unauthorized