HTTP | http response example
;varadpushup=adpushup||{};adpushup.que=adpushup.que||[];adpushup.que.push(function(){adpushup.triggerAd(ad_id);});Afterreceivingandinterpretingarequestmessage,aserverrespondswithanHTTPresponsemessage:AStatus-lineZeroormoreheader(General|Response|Entity)fieldsfollowedbyCRLFAnemptyline(i.e.,alinewithnothingprecedingtheCRLF)indicatingtheendoftheheaderfieldsOptionallyamessage-bodyThefollowingsectionsexplaineachoftheentitiesusedinanHTTPresponsemessage.MessageStatus-LineAStatus-Lineconsistsofthepr...
; var adpushup = adpushup || {}; adpushup.que = adpushup.que || []; adpushup.que.push(function() { adpushup.triggerAd(ad_id); });After receiving and interpreting a request message, a server responds with an HTTP response message:
A Status-line Zero or more header (General|Response|Entity) fields followed by CRLF An empty line (i.e., a line with nothing preceding the CRLF) indicating the end of the header fields Optionally a message-bodyThe following sections explain each of the entities used in an HTTP response message.
Message Status-LineA Status-Line consists of the protocol version followed by a numeric status code and its associated textual phrase. The elements are separated by space SP characters.
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF HTTP VersionA server supporting HTTP version 1.1 will return the following version information:
HTTP-Version = HTTP/1.1 Status CodeThe Sta...