您当前的位置: 首页 > 网络技术  > 服务器教程 浏览
OSS不支持的操作
发布时间:2015-12-10    点击率:次    来源:www.sytcke.com    作者:电脑技术学习网

 如果试图以不支持的操作来访问某个资源,返回405 Method Not Allowed错误

请求示例: abc /BucketName HTTP/1.1 Host: storage.aliyun.com Date: date Authorization: signatureValue 返回消息头示例: x-oss-request-id: 2403382433A2EDA8 Allow: GET, DELETE, HEAD, PUT Content-Type: application/xml Transfer-Encoding: chunked Date: Thu, 31 Mar 2011 10:01:52 GMT Server: AliyunOSS 返回消息体示例: <?xml version="1.0" ?> <Error> <Code> MethodNotAllowed </Code> <Message> The specified method is not allowed against this resource. </Message> <ResourceType> BUCKET </ResourceType> <Method> abc </Method> <RequestId> 2403382433A2EDA8 </RequestId> <HostId> storage.aliyun.com </HostId> </Error>

注意:如果访问的资源是 /bucket/, ResourceType应该是bucket,如果访问的资源是 /bucket/object,ResourceType应该是object。

来源 电脑技术网 www.sytcke.com
发表留言
发表留言请先登录!
免责声明:本站发布的信息和评论纯属网民个人行为,并不代表本站立场,如发现有违法信息或侵权行为,请直接与本站管理员联系,我们将在收到您的信息后24小时内作出处理!