14,970
edits
mNo edit summary |
(→Display HTTP headers of a web page: +curl) |
||
| Line 25: | Line 25: | ||
* [http://www.ericgiguere.com/articles/masquerading-your-browser.html Masquerading Your Browser]: also offer the tool [http://www.ericgiguere.com/tools/http-header-viewer.html HTTP Header Viewer] {{access | date=2012-05-16}} | * [http://www.ericgiguere.com/articles/masquerading-your-browser.html Masquerading Your Browser]: also offer the tool [http://www.ericgiguere.com/tools/http-header-viewer.html HTTP Header Viewer] {{access | date=2012-05-16}} | ||
* {{Chrome}}: Press {{kbd | key = F12}} to open the '''Developer Tools''' window -> Switch to ''Network'' panel -> Click the ''Headers'' to display the HTTP headers of a web page. (1)Section ''Query String Parameters'' for HTTP GET request (2)Section ''Form Data'' for HTTP POST request. Further reading: [https://developers.google.com/chrome-developer-tools/docs/network?hl=zh-TW Chrome DevTools — Google Developers] | * {{Chrome}}: Press {{kbd | key = F12}} to open the '''Developer Tools''' window -> Switch to ''Network'' panel -> Click the ''Headers'' to display the HTTP headers of a web page. (1)Section ''Query String Parameters'' for HTTP GET request (2)Section ''Form Data'' for HTTP POST request. Further reading: [https://developers.google.com/chrome-developer-tools/docs/network?hl=zh-TW Chrome DevTools — Google Developers] | ||
* [https://curl.haxx.se/ curl] {{access | date=2018-09-20}} | |||
<pre> | |||
$ curl -L -I https://www.google.com | |||
# Options quoted from https://curl.haxx.se/docs/manpage.html | |||
# -L, --location If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code) | |||
# -I, --head Fetch the headers only! | |||
HTTP/2 200 | |||
date: Thu, 20 Sep 2018 02:56:29 GMT | |||
expires: -1 | |||
cache-control: private, max-age=0 | |||
content-type: text/html; charset=ISO-8859-1 | |||
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info." | |||
server: gws | |||
x-xss-protection: 1; mode=block | |||
x-frame-options: SAMEORIGIN | |||
set-cookie: 1P_JAR=2018-09-20-02; expires=Sat, 20-Oct-2018 02:56:29 GMT; path=/; domain=.google.com | |||
set-cookie: NID=139=DXgMIx0L06ZUBLaTUD2J_pqIvfgSEo945An0URyIwGqVf_NOxPcHcaAxhNwNforv-Lw0-m6DSKX-y1wz0EhuC-tdzLHPyWYqLVOdu7VBgjH9spnMr_2MfY79uh05aYuH; expires=Fri, 22-Mar-2019 02:56:29 GMT; path=/; domain=.google.com; HttpOnly | |||
alt-svc: quic=":443"; ma=2592000; v="44,43,39,35" | |||
accept-ranges: none | |||
vary: Accept-Encoding | |||
</pre> | |||
=== other tools === | === other tools === | ||