Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Curl 使用所需的HTTP Referer和用户代理时没有响应_Curl_Http Headers_User Agent_Http Referer_Lynx - Fatal编程技术网

Curl 使用所需的HTTP Referer和用户代理时没有响应

Curl 使用所需的HTTP Referer和用户代理时没有响应,curl,http-headers,user-agent,http-referer,lynx,Curl,Http Headers,User Agent,Http Referer,Lynx,请有人看看我的卷发请求有什么问题。提前谢谢 要求: 为了访问提交简历的说明,您必须从此web服务获取“/anvato resumes/instructions.txt”资源: 您必须通过使用Lynx web浏览器跟踪指向资源的链接,使其看起来像是在发送GET请求。否则,web服务将给您一个拒绝访问错误 解决方案: 响应: (XML)访问被拒绝以下内容有效 curl -A "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1" -e "http://www.

请有人看看我的卷发请求有什么问题。提前谢谢

要求:

  • 为了访问提交简历的说明,您必须从此web服务获取“/anvato resumes/instructions.txt”资源:

  • 您必须通过使用Lynx web浏览器跟踪指向资源的链接,使其看起来像是在发送GET请求。否则,web服务将给您一个拒绝访问错误

  • 解决方案:

    响应:

    (XML)访问被拒绝

    以下内容有效

    curl  -A "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1" -e "http://www.anvato.com"  -X GET https://s3.amazonaws.com/anvato-resumes/instructions.txt
    
    尝试使用
    --cookie
    选项。
    --cookie
    无效:(
    curl-X GET--header“Referer:www.anvato.com”--header“User Agent:Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1”--cookie“test.txt”https://s3.amazonaws.com/anvato-resumes/instructions.txt
    curl  -A "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1" -e "http://www.anvato.com"  -X GET https://s3.amazonaws.com/anvato-resumes/instructions.txt