Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.88 KB | None | 0 0
  1. + sites=(http://google.de http://google.fr https://stackoverflow.com)
  2. + for site in '${sites[*]}'
  3. ++ curl -Is http://google.de
  4. + headers='HTTP/1.1 301 Moved Permanently
  5. Location: http://www.google.de/
  6. Content-Type: text/html; charset=UTF-8
  7. Date: Fri, 23 Feb 2018 22:11:52 GMT
  8. Expires: Sun, 25 Mar 2018 22:11:52 GMT
  9. Cache-Control: public, max-age=2592000
  10. Server: gws
  11. Content-Length: 218
  12. X-XSS-Protection: 1; mode=block
  13. X-Frame-Options: SAMEORIGIN
  14. '
  15. ++ echo 'HTTP/1.1 301 Moved Permanently
  16. Location: http://www.google.de/
  17. Content-Type: text/html; charset=UTF-8
  18. Date: Fri, 23 Feb 2018 22:11:52 GMT
  19. Expires: Sun, 25 Mar 2018 22:11:52 GMT
  20. Cache-Control: public, max-age=2592000
  21. Server: gws
  22. Content-Length: 218
  23. X-XSS-Protection: 1; mode=block
  24. X-Frame-Options: SAMEORIGIN
  25. '
  26. ++ cut -c10-
  27. ++ head -n 1
  28. ' status='301 Moved Permanently
  29. ++ echo 'HTTP/1.1 301 Moved Permanently
  30. Location: http://www.google.de/
  31. Content-Type: text/html; charset=UTF-8
  32. Date: Fri, 23 Feb 2018 22:11:52 GMT
  33. Expires: Sun, 25 Mar 2018 22:11:52 GMT
  34. Cache-Control: public, max-age=2592000
  35. Server: gws
  36. Content-Length: 218
  37. X-XSS-Protection: 1; mode=block
  38. X-Frame-Options: SAMEORIGIN
  39. '
  40. ++ grep Location
  41. ++ cut -c10-
  42. ' location=' http://www.google.de/
  43. + echo -n 'http://google.de : '
  44. 'ttp://google.de : + echo -n '301 Moved Permanently
  45.  ]][ ! -z  http://www.google.de/
  46. )'echo -n ' ( http://www.google.de/
  47. )+ echo -e '\n'oogle.de/
  48.  
  49.  
  50. + for site in '${sites[*]}'
  51. ++ curl -Is http://google.fr
  52. + headers='HTTP/1.1 301 Moved Permanently
  53. Location: http://www.google.fr/
  54. Content-Type: text/html; charset=UTF-8
  55. Date: Fri, 23 Feb 2018 22:11:52 GMT
  56. Expires: Sun, 25 Mar 2018 22:11:52 GMT
  57. Cache-Control: public, max-age=2592000
  58. Server: gws
  59. Content-Length: 218
  60. X-XSS-Protection: 1; mode=block
  61. X-Frame-Options: SAMEORIGIN
  62. '
  63. ++ echo 'HTTP/1.1 301 Moved Permanently
  64. Location: http://www.google.fr/
  65. Content-Type: text/html; charset=UTF-8
  66. Date: Fri, 23 Feb 2018 22:11:52 GMT
  67. Expires: Sun, 25 Mar 2018 22:11:52 GMT
  68. Cache-Control: public, max-age=2592000
  69. Server: gws
  70. Content-Length: 218
  71. X-XSS-Protection: 1; mode=block
  72. X-Frame-Options: SAMEORIGIN
  73. '
  74. ++ head -n 1
  75. ++ cut -c10-
  76. ' status='301 Moved Permanently
  77. ++ echo 'HTTP/1.1 301 Moved Permanently
  78. Location: http://www.google.fr/
  79. Content-Type: text/html; charset=UTF-8
  80. Date: Fri, 23 Feb 2018 22:11:52 GMT
  81. Expires: Sun, 25 Mar 2018 22:11:52 GMT
  82. Cache-Control: public, max-age=2592000
  83. Server: gws
  84. Content-Length: 218
  85. X-XSS-Protection: 1; mode=block
  86. X-Frame-Options: SAMEORIGIN
  87. '
  88. ++ grep Location
  89. ++ cut -c10-
  90. ' location=' http://www.google.fr/
  91. + echo -n 'http://google.fr : '
  92. 'ttp://google.fr : + echo -n '301 Moved Permanently
  93.  ]][ ! -z  http://www.google.fr/
  94. )'echo -n ' ( http://www.google.fr/
  95. )+ echo -e '\n'oogle.fr/
  96.  
  97.  
  98. + for site in '${sites[*]}'
  99. ++ curl -Is https://stackoverflow.com
  100. + headers='HTTP/1.1 200 OK
  101. Content-Length: 252509
  102. Content-Type: text/html; charset=utf-8
  103. X-Frame-Options: SAMEORIGIN
  104. X-Request-Guid: ca8da0b2-dee2-4df1-a044-c6eeeaf7007a
  105. Strict-Transport-Security: max-age=15552000
  106. Accept-Ranges: bytes
  107. Date: Fri, 23 Feb 2018 22:11:53 GMT
  108. Via: 1.1 varnish
  109. Connection: keep-alive
  110. X-Served-By: cache-fra19142-FRA
  111. X-Cache: MISS
  112. X-Cache-Hits: 0
  113. X-Timer: S1519423913.311728,VS0,VE98
  114. Vary: Fastly-SSL
  115. X-DNS-Prefetch-Control: off
  116. Set-Cookie: prov=f9111b41-efc9-8a2a-d429-9537262036e8; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
  117. Cache-Control: private
  118. '
  119. ++ echo 'HTTP/1.1 200 OK
  120. Content-Length: 252509
  121. Content-Type: text/html; charset=utf-8
  122. X-Frame-Options: SAMEORIGIN
  123. X-Request-Guid: ca8da0b2-dee2-4df1-a044-c6eeeaf7007a
  124. Strict-Transport-Security: max-age=15552000
  125. Accept-Ranges: bytes
  126. Date: Fri, 23 Feb 2018 22:11:53 GMT
  127. Via: 1.1 varnish
  128. Connection: keep-alive
  129. X-Served-By: cache-fra19142-FRA
  130. X-Cache: MISS
  131. X-Cache-Hits: 0
  132. X-Timer: S1519423913.311728,VS0,VE98
  133. Vary: Fastly-SSL
  134. X-DNS-Prefetch-Control: off
  135. Set-Cookie: prov=f9111b41-efc9-8a2a-d429-9537262036e8; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
  136. Cache-Control: private
  137. ++ head -n 1
  138. ++ cut -c10-
  139. '
  140. ' status='200 OK
  141. ++ echo 'HTTP/1.1 200 OK
  142. Content-Length: 252509
  143. Content-Type: text/html; charset=utf-8
  144. X-Frame-Options: SAMEORIGIN
  145. X-Request-Guid: ca8da0b2-dee2-4df1-a044-c6eeeaf7007a
  146. Strict-Transport-Security: max-age=15552000
  147. Accept-Ranges: bytes
  148. Date: Fri, 23 Feb 2018 22:11:53 GMT
  149. Via: 1.1 varnish
  150. Connection: keep-alive
  151. X-Served-By: cache-fra19142-FRA
  152. X-Cache: MISS
  153. X-Cache-Hits: 0
  154. X-Timer: S1519423913.311728,VS0,VE98
  155. Vary: Fastly-SSL
  156. X-DNS-Prefetch-Control: off
  157. Set-Cookie: prov=f9111b41-efc9-8a2a-d429-9537262036e8; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
  158. Cache-Control: private
  159. ++ grep Location
  160. ++ cut -c10-
  161. '
  162. + location=
  163. + echo -n 'https://stackoverflow.com : '
  164. 'ttps://stackoverflow.com : + echo -n '200 OK
  165. + [[ ! -z '' ]]
  166. + echo -e '\n'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement