我在命令行中使用 curl -i 访问网站https://www.seloger.com上的某个网址,当我尝试多次访问网址时遇到问题一个相同的wifi网络:第一个呼叫工作正常,我收到页面上的所有内容,然后显示在我的终端上。在第二次调用(以及所有不可告人的调用)但服务器响应 HTTP / 1.1 307临时重定向重定向到错误页面,我不知道为什么。 我试过几个wifi网络(在家里和工作中),每次发生同样的事情:先打电话OK,第二个电话(和所有不可告人的电话)重定向到错误页面。
这是curl命令:
curl -i 'http://www.seloger.com/list.htm?tri=initial&idtypebien=2,1&idtt=2&naturebien=1,2,4&cp=75'
以下是第一次通话后的回复标题:
HTTP/1.1 200 OK
Cache-Control: private
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: Thu, 03 May 2018 07:48:10 GMT
Vary: User-Agent
Set-Cookie: ASP.NET_SessionId=h1f50tvabpvxozh2wcootrog; path=/; HttpOnly
X-S: X06
Cache: max-age=10
X-S: X06
Cache: max-age=10
Set-Cookie: SearchAnnDep=75; domain=.seloger.com; expires=Sat, 02-Jun-2018 07:49:10 GMT; path=/
Set-Cookie: SearchAnnDep=75; domain=.seloger.com; expires=Sat, 02-Jun-2018 07:49:10 GMT; path=/
Set-Cookie: Compte=; domain=.seloger.com; expires=Wed, 02-May-2018 07:49:10 GMT; path=/
Set-Cookie: SearchAnnDep=75; domain=.seloger.com; expires=Sat, 02-Jun-2018 07:49:10 GMT; path=/
Set-Cookie: __uzma=mae059337c-8a5d-4e84-b8d8-26667296db0d6145; expires=Sun, 30-Apr-2028 07:49:10 GMT; path=/
Set-Cookie: __uzmb=1525340950; expires=Sun, 30-Apr-2028 07:49:10 GMT; path=/
Set-Cookie: __uzmc=323081068857; expires=Sun, 30-Apr-2028 07:49:10 GMT; path=/
Set-Cookie: __uzmd=1525340950; expires=Sun, 30-Apr-2028 07:49:10 GMT; path=/
Set-Cookie: SearchAnnDep=75; domain=.seloger.com; expires=Sat, 02-Jun-2018 07:49:10 GMT; path=/
Set-Cookie: FirstVisitSeLoger=03/05/2018 09:49:11; domain=.seloger.com; expires=Mon, 19-Nov-2018 08:49:11 GMT; path=/
Set-Cookie: SearchAnnDep=75; domain=.seloger.com; expires=Sat, 02-Jun-2018 07:49:11 GMT; path=/
Date: Thu, 03 May 2018 07:49:10 GMT
Content-Length: 361151
以下是第二次调用后响应的标题:
HTTP/1.1 307 Temporary Redirect
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /erreur-temporaire/
Vary: User-Agent
Set-Cookie: ASP.NET_SessionId=k4g1xesxplpudif2ze3g4j5e; path=/; HttpOnly
X-S: X06
Cache: max-age=10
X-S: X06
Cache: max-age=10
Set-Cookie: __uzma=ma72eea0f2-450c-4016-9549-7880c53778288142; expires=Sun, 30-Apr-2028 07:53:36 GMT; path=/
Set-Cookie: __uzmb=1525341216; expires=Sun, 30-Apr-2028 07:53:36 GMT; path=/
Set-Cookie: __uzmc=223201020491; expires=Sun, 30-Apr-2028 07:53:36 GMT; path=/
Set-Cookie: __uzmd=1525341216; expires=Sun, 30-Apr-2028 07:53:36 GMT; path=/
Date: Thu, 03 May 2018 07:53:35 GMT
Content-Length: 0