Skip to content

Instantly share code, notes, and snippets.

@Zegnat
Created December 14, 2017 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zegnat/f5c3806c6be0ea5244359833acbf96a3 to your computer and use it in GitHub Desktop.
Save Zegnat/f5c3806c6be0ea5244359833acbf96a3 to your computer and use it in GitHub Desktop.
wget (like my browser) fails to get the file, but cURL does just fine.
$ wget https://zegnat.github.io/JS-Relations/index.html
--2017-12-14 17:00:18-- https://zegnat.github.io/JS-Relations/index.html
Resolving zegnat.github.io... 151.101.85.147, 2a04:4e42:14::403
Connecting to zegnat.github.io|151.101.85.147|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-12-14 17:00:18 ERROR 404: Not Found.
$ curl -O https://zegnat.github.io/JS-Relations/index.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 345 100 345 0 0 345 0 0:00:01 --:--:-- 0:00:01 726
$ cat index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Country's and City's</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment