Si Nguyen
at GO1
The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems.[1] HTTP is the foundation of data communication for the World Wide Web.
The HTTP header consists of:
GET /GO1P-572/ HTTP/1.1
Host: com.apiom-test.s3-website-us-east-1.amazonaws.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,vi;q=0.6,cs;q=0.4
Cookie: __zlcmid=WYevYYlGONoaMB; _ga=GA1.2.1541119812.1441346929; _gat=1
If-None-Match: "db72b57d602ef57f571965257a13b1a2"
If-Modified-Since: Mon, 05 Oct 2015 04:35:00 GMTHTTP/1.1 304 Not Modified
x-amz-id-2: HhdJ9sRg9afS0sp0nmnXJ+2IKUmExPOb7NPr4M7PwnHDaALBf1AopnnDn4E1ZouWPD1FHP6nhHs=
x-amz-request-id: FDA42C9D468DBFF9
Date: Mon, 05 Oct 2015 07:10:49 GMT
Last-Modified: Mon, 05 Oct 2015 04:35:00 GMT
x-amz-expiration: expiry-date="Tue, 20 Oct 2015 00:00:00 GMT", rule-id="Rule for the Entire Bucket"
ETag: "db72b57d602ef57f571965257a13b1a2"
Server: AmazonS3Request Headers
Response Headers
Client-side HTTP support
Server-side HTTP support
Why bother?
Message
HTTP Headers
$message = $message->withHeader('foo', 'bar');
echo $message->getHeaderLine('foo');
// Outputs: bar
echo $message->getHeaderLine('FOO');
// Outputs: bar
$message = $message->withHeader('fOO', 'baz');
echo $message->getHeaderLine('foo');
// Outputs: bazStreams
Request Targets and URIs