我想知道如何获取用于重定向的页面。例如,网站sartori-utensili.myshopify.com,在将此域名输入浏览器时,它将跳转到https://utensili.store/。但是我们怎样才能获得这个页面" sartori-utensili.myshopify.com"?感谢
答案 0 :(得分:0)
通常,如果页面重定向,则没有原始页面。
如果example.com
重定向到somesite.com
,那么example.com
会返回一个代码,可能是301以及somesite.com
的网址,这就是整个回复。没有HTML,只有301的响应代码和HTTP响应标头告诉浏览器在哪里导航。
我使用postman来点击您指定的网址并关闭了自动重定向功能。我收到了以下内容:
<html>
<body>You are being
<a href="https://utensili.store/">redirected</a>.
</body>
</html>
连同标题:
Connection →keep-alive
Content-Language →it
Content-Type →text/html; charset=utf-8
Date →Sun, 14 Jan 2018 21:44:50 GMT
Location →https://utensili.store/
P3P →CP="NOI DSP COR NID ADMa OPTa OUR NOR"
Server →nginx
Transfer-Encoding →chunked
X-Content-Type-Options →nosniff
X-Content-Type-Options →nosniff
X-Dc →chi2,ash
X-Download-Options →noopen
X-Permitted-Cross-Domain-Policies →none
X-Request-ID →9840f718-5284-4d3f-a19d-a81aaf3a4cd5
X-ShardId →29
X-ShopId →8266121
X-Sorting-Hat-PodId →29
X-Sorting-Hat-PodId-Cached →0
X-Sorting-Hat-Section →pod
X-Sorting-Hat-ShopId →8266121
X-Sorting-Hat-ShopId-Cached →0
X-XSS-Protection →1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=storefront_section%2Fshop&source%5Bsection%5D=storefront&source%5Buuid%5D=9840f718-5284-4d3f-a19d-a81aaf3a4cd5
答案 1 :(得分:0)
这取决于您希望从重定向页面获得什么。如果页面重定向,那么作者出于某种原因并不希望您看到它。不过,您可以使用Fiddler
等功能查看代码