301 永久移动 - 新 link 重定向页面?
301 Moved Permanently - new link to redirect page?
我正在构建一个程序来阅读以下内容 url:
http://www.bloomberg.com/quote/USDEUR:CUR
我得到的回复是:
> HTTP/1.1 301 Moved Permanently Server: Apache Location:
> https://www.bloomberg.com/quote/XAGUSD:CUR Content-Type: text/html;
> charset=iso-8859-1 Vary: Accept-Encoding Content-Encoding: gzip
> Content-Length: 209 Cache-Control: max-age=60 Expires: Fri, 28 Oct
> 2016 20:13:45 GMT Date: Fri, 28 Oct 2016 20:12:45 GMT Connection:
> close Set-Cookie: MARKETS_AP=J09; path=/ Set-Cookie: SRV=JPX04; path=/
> Set-Cookie: ak_rg=Europe; expires=Fri, 04-Nov-2016 20:12:45 GMT;
> path=/ Set-Cookie: ak_co=ES; expires=Fri, 04-Nov-2016 20:12:45 GMT;
> path=/
问题是:重定向页面的新 link 在哪里?
谢谢
在位置 header 中,在您的示例中 https://www.bloomberg.com/quote/XAGUSD:CUR
(从货币对来看似乎有点奇怪)
我正在构建一个程序来阅读以下内容 url: http://www.bloomberg.com/quote/USDEUR:CUR
我得到的回复是:
> HTTP/1.1 301 Moved Permanently Server: Apache Location:
> https://www.bloomberg.com/quote/XAGUSD:CUR Content-Type: text/html;
> charset=iso-8859-1 Vary: Accept-Encoding Content-Encoding: gzip
> Content-Length: 209 Cache-Control: max-age=60 Expires: Fri, 28 Oct
> 2016 20:13:45 GMT Date: Fri, 28 Oct 2016 20:12:45 GMT Connection:
> close Set-Cookie: MARKETS_AP=J09; path=/ Set-Cookie: SRV=JPX04; path=/
> Set-Cookie: ak_rg=Europe; expires=Fri, 04-Nov-2016 20:12:45 GMT;
> path=/ Set-Cookie: ak_co=ES; expires=Fri, 04-Nov-2016 20:12:45 GMT;
> path=/
问题是:重定向页面的新 link 在哪里? 谢谢
在位置 header 中,在您的示例中 https://www.bloomberg.com/quote/XAGUSD:CUR
(从货币对来看似乎有点奇怪)