Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/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
Amazon预签名URL-Python_Python_Amazon S3_Request_Pre Signed Url - Fatal编程技术网

Amazon预签名URL-Python

Amazon预签名URL-Python,python,amazon-s3,request,pre-signed-url,Python,Amazon S3,Request,Pre Signed Url,我已经分配了一个预先分配的URL。当我尝试使用python自己的库“requests”获取url时,它会显示以下消息 "response"=>["<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Messag

我已经分配了一个预先分配的URL。当我尝试使用python自己的库“requests”获取url时,它会显示以下消息

"response"=>["<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>W9AYDBXYWC3SC3", "9F</RequestId><HostId>RzP63sVii2NOCFRNlPyP4/Iz/7sMn8rXJanhNfB8gnQmrDJmCQYk1igJ7TmcBpPubFH4I5QAAo4=</HostId></Error>"]}
但问题是当我试图和邮递员搭讪的时候。它工作得很好。我不知道这背后的真正原因。非常感谢您的回复。 下面是我访问url的方式

import requests
file_response = requests.get(data.get('file_path'), stream=True)

您能否详细说明什么是
data.get('file\u path')
以及您是如何实际创建签名url的?