Linux curl命令中 HTTP 302处理
在Linux中使用curl命令时,偶尔会遇到一些URL跳转到新的URL,即HTTP中的3XX(redirection,重定向 )。$curl -s -I $URL > log这时在返回的报文中,有Location字段标明了新的URL。$cat logHTTP/1.1 302 FoundExpires: -1Cache-Control: private, max-age=0Pragma: no-cacheLocation: http://182.118...