Friday, 28 April 2017

HTTP request headers


Check request header with cURL (see URL)
- cURL  is  a tool to transfer data from or to a server, using one of the supported protocols like HTTPS/ SMTPS/ gopher etc. see https://curl.haxx.se/


$ curl -v -XGET 172.24.14.158
* Rebuilt URL to: 172.24.14.158/
*   Trying 172.24.14.158...
* Connected to 172.24.14.158 (172.24.14.158) port 80 (#0)
> GET / HTTP/1.1
> Host: 172.24.14.158
> User-Agent: curl/7.43.0
> Accept: */*
> 
< HTTP/1.1 200 
< Content-Type: text/html;charset=ISO-8859-1
< Date: Sun, 30 Apr 2017 06:29:31 GMT
< Set-Cookie: JSESSIONID=C565042EC3A26A25D4ECF6787B54CE76;path=/;HttpOnly
< Content-Length: 14
< Connection: keep-alive
< 
some.her.data
* Connection #0 to host 172.24.14.158 left intact

Check request header with browser