Skip to content

Instantly share code, notes, and snippets.

@51enra
Created December 5, 2019 14:51
Show Gist options
  • Save 51enra/67f0017477ca11a74e477ecf86e939d0 to your computer and use it in GitHub Desktop.
Save 51enra/67f0017477ca11a74e477ecf86e939d0 to your computer and use it in GitHub Desktop.
Usage of curl
Header response for non-existent page
HTTP/1.1 404 Not Found
Date: Thu, 05 Dec 2019 14:26:46 GMT
Server: Apache
Last-Modified: Thu, 05 Mar 2015 08:44:26 GMT
ETag: "220-51086934dd7f3"
Accept-Ranges: bytes
Content-Length: 544
Content-Type: text/html
...and HTML content of the page
<!DOCTYPE html>
<html>
<head>
<title>tutego - Error 404</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<meta name='robots' content='nofollow, noindex'/>
<link href="/errors/inc/errordocs.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="outer">
<div id="inner">
<h1>Error 404</h1>
<p>Seite gibt es nicht!</p>
<div id=backlink><a href="#" onclick="window.history.go(-2)" target="_self">Back</a></div>
</div>
</div>
</body>
</html>
Redirect header from http://telekom.de to https page
HTTP/1.1 301 Moved Permanently
Date: Thu, 05 Dec 2019 14:37:27 GMT
Server: Apache
Location: https://telekom.de/
Content-Type: text/html; charset=iso-8859-1
**** NOTE: SCREENSHOTS AVAILABLE ON REQUEST!!! ****
Header of https://ubuntu.com
HTTP/1.1 200 OK
Date: Thu, 05 Dec 2019 14:45:21 GMT
Server: openresty/1.15.8.2
Strict-Transport-Security: max-age=15768000
Content-Type: text/html; charset=utf-8
Content-Length: 105816
Vary: Accept-Encoding
X-View-Name: canonicalwebteam.templatefinder.templatefinder.template_finder
X-VCS-Revision: 1575556786-d22c670
X-Request-Id: 7e88c61cf4f650e995b9bd351958239e
Link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect, <https://res.cloudinary.com>; rel=preconnect
Age: 1
X-Cache: HIT from nuno.canonical.com
X-Cache-Lookup: HIT from nuno.canonical.com:80
Via: 1.1 nuno.canonical.com (squid/3.5.12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment