当前,我在“互操作模式”下使用GCS使其接受S3 API请求。通过使用此处的官方分段上传示例(+设置适当的端点),第一个启动POST请求:
POST /bucket/object?uploads HTTP/1.1
Host: storage.googleapis.com
Authorization: AWS KEY:SIGNATURE
Date: Wed, 07 Jan 2015 13:34:04 GMT
User-Agent: aws-sdk-java/1.7.5 Linux/3.13.0-43-generic Java_HotSpot(TM)_64-Bit_Server_VM/24.72-b04/1.7.0_72
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Transfer-Encoding: chunked
Connection: Keep-Alive
结果如下:
HTTP/1.1 400 Bad Request
Content-Length: 55
Date: Wed, 07 Jan 2015 13:34:05 GMT
Server: UploadServer ("Built on Dec 19 2014 ...")
Content-Type: text/html; charset=UTF-8
Alternate-Protocol: 443:quic,p=0.02
The request's content type is not accepted on this URL.
这可能是AWS客户端问题,还是GCS还不支持S3的分段上传?
我尝试过的大多数其他动作(下载对象,列表存储桶对象等)似乎都可以正常工作。
GSC不支持S3分段上传界面。如果要执行块并行上传,则可以使用对象组合-请参阅https://cloud.google.com/storage/docs/composite-objects
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句