Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + sites=(http://google.de http://google.fr https://stackoverflow.com)
- + for site in '${sites[*]}'
- ++ curl -Is http://google.de
- + headers='HTTP/1.1 301 Moved Permanently
- Location: http://www.google.de/
- Content-Type: text/html; charset=UTF-8
- Date: Fri, 23 Feb 2018 22:11:52 GMT
- Expires: Sun, 25 Mar 2018 22:11:52 GMT
- Cache-Control: public, max-age=2592000
- Server: gws
- Content-Length: 218
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: SAMEORIGIN
- '
- ++ echo 'HTTP/1.1 301 Moved Permanently
- Location: http://www.google.de/
- Content-Type: text/html; charset=UTF-8
- Date: Fri, 23 Feb 2018 22:11:52 GMT
- Expires: Sun, 25 Mar 2018 22:11:52 GMT
- Cache-Control: public, max-age=2592000
- Server: gws
- Content-Length: 218
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: SAMEORIGIN
- '
- ++ cut -c10-
- ++ head -n 1
- ' status='301 Moved Permanently
- ++ echo 'HTTP/1.1 301 Moved Permanently
- Location: http://www.google.de/
- Content-Type: text/html; charset=UTF-8
- Date: Fri, 23 Feb 2018 22:11:52 GMT
- Expires: Sun, 25 Mar 2018 22:11:52 GMT
- Cache-Control: public, max-age=2592000
- Server: gws
- Content-Length: 218
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: SAMEORIGIN
- '
- ++ grep Location
- ++ cut -c10-
- ' location=' http://www.google.de/
- + echo -n 'http://google.de : '
- 'ttp://google.de : + echo -n '301 Moved Permanently
- ]][ ! -z http://www.google.de/
- )'echo -n ' ( http://www.google.de/
- )+ echo -e '\n'oogle.de/
- + for site in '${sites[*]}'
- ++ curl -Is http://google.fr
- + headers='HTTP/1.1 301 Moved Permanently
- Location: http://www.google.fr/
- Content-Type: text/html; charset=UTF-8
- Date: Fri, 23 Feb 2018 22:11:52 GMT
- Expires: Sun, 25 Mar 2018 22:11:52 GMT
- Cache-Control: public, max-age=2592000
- Server: gws
- Content-Length: 218
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: SAMEORIGIN
- '
- ++ echo 'HTTP/1.1 301 Moved Permanently
- Location: http://www.google.fr/
- Content-Type: text/html; charset=UTF-8
- Date: Fri, 23 Feb 2018 22:11:52 GMT
- Expires: Sun, 25 Mar 2018 22:11:52 GMT
- Cache-Control: public, max-age=2592000
- Server: gws
- Content-Length: 218
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: SAMEORIGIN
- '
- ++ head -n 1
- ++ cut -c10-
- ' status='301 Moved Permanently
- ++ echo 'HTTP/1.1 301 Moved Permanently
- Location: http://www.google.fr/
- Content-Type: text/html; charset=UTF-8
- Date: Fri, 23 Feb 2018 22:11:52 GMT
- Expires: Sun, 25 Mar 2018 22:11:52 GMT
- Cache-Control: public, max-age=2592000
- Server: gws
- Content-Length: 218
- X-XSS-Protection: 1; mode=block
- X-Frame-Options: SAMEORIGIN
- '
- ++ grep Location
- ++ cut -c10-
- ' location=' http://www.google.fr/
- + echo -n 'http://google.fr : '
- 'ttp://google.fr : + echo -n '301 Moved Permanently
- ]][ ! -z http://www.google.fr/
- )'echo -n ' ( http://www.google.fr/
- )+ echo -e '\n'oogle.fr/
- + for site in '${sites[*]}'
- ++ curl -Is https://stackoverflow.com
- + headers='HTTP/1.1 200 OK
- Content-Length: 252509
- Content-Type: text/html; charset=utf-8
- X-Frame-Options: SAMEORIGIN
- X-Request-Guid: ca8da0b2-dee2-4df1-a044-c6eeeaf7007a
- Strict-Transport-Security: max-age=15552000
- Accept-Ranges: bytes
- Date: Fri, 23 Feb 2018 22:11:53 GMT
- Via: 1.1 varnish
- Connection: keep-alive
- X-Served-By: cache-fra19142-FRA
- X-Cache: MISS
- X-Cache-Hits: 0
- X-Timer: S1519423913.311728,VS0,VE98
- Vary: Fastly-SSL
- X-DNS-Prefetch-Control: off
- Set-Cookie: prov=f9111b41-efc9-8a2a-d429-9537262036e8; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
- Cache-Control: private
- '
- ++ echo 'HTTP/1.1 200 OK
- Content-Length: 252509
- Content-Type: text/html; charset=utf-8
- X-Frame-Options: SAMEORIGIN
- X-Request-Guid: ca8da0b2-dee2-4df1-a044-c6eeeaf7007a
- Strict-Transport-Security: max-age=15552000
- Accept-Ranges: bytes
- Date: Fri, 23 Feb 2018 22:11:53 GMT
- Via: 1.1 varnish
- Connection: keep-alive
- X-Served-By: cache-fra19142-FRA
- X-Cache: MISS
- X-Cache-Hits: 0
- X-Timer: S1519423913.311728,VS0,VE98
- Vary: Fastly-SSL
- X-DNS-Prefetch-Control: off
- Set-Cookie: prov=f9111b41-efc9-8a2a-d429-9537262036e8; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
- Cache-Control: private
- ++ head -n 1
- ++ cut -c10-
- '
- ' status='200 OK
- ++ echo 'HTTP/1.1 200 OK
- Content-Length: 252509
- Content-Type: text/html; charset=utf-8
- X-Frame-Options: SAMEORIGIN
- X-Request-Guid: ca8da0b2-dee2-4df1-a044-c6eeeaf7007a
- Strict-Transport-Security: max-age=15552000
- Accept-Ranges: bytes
- Date: Fri, 23 Feb 2018 22:11:53 GMT
- Via: 1.1 varnish
- Connection: keep-alive
- X-Served-By: cache-fra19142-FRA
- X-Cache: MISS
- X-Cache-Hits: 0
- X-Timer: S1519423913.311728,VS0,VE98
- Vary: Fastly-SSL
- X-DNS-Prefetch-Control: off
- Set-Cookie: prov=f9111b41-efc9-8a2a-d429-9537262036e8; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
- Cache-Control: private
- ++ grep Location
- ++ cut -c10-
- '
- + location=
- + echo -n 'https://stackoverflow.com : '
- 'ttps://stackoverflow.com : + echo -n '200 OK
- + [[ ! -z '' ]]
- + echo -e '\n'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement