在测试一个新应用程序时,一个测试人员总是将他上传到S3失败.我们向S3发送一个~1.2mb文件的PUT请求并设置它的ACL权限.对他来说,他总是得到501 - Not Implemented错误.
以下是请求中的标题:
"Accept-Encoding" = gzip;
Authorization = "AWS ###:###";
"Content-Encoding" = gzip;
"Content-Length" = 1420267;
"Content-Type" = "application/octet-stream";
Date = "Thu, 6 Oct 2011 02:59:47 +0000";
"User-Agent" = "MyApp 1.0 (iPhone; iPhone OS 4.3.1; en_US)";
"x-amz-acl" = "public-read-write";
Run Code Online (Sandbox Code Playgroud)
以下是响应标头:
Connection = close;
"Content-Length" = 321;
"Content-Type" = "application/xml";
Date = "Thu, 06 Oct 2011 03:00:14 GMT";
Server = AmazonS3;
Run Code Online (Sandbox Code Playgroud)
欢迎任何想法!
响应返回状态代码501和字符串 - "您提供的标头意味着未实现的功能"