首页 > 网管 > 服务器 > 正文

OSS不支持的操作

2020-05-27 13:38:59
字体:
来源:转载
供稿:网友

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

请求示例:abc /BucketName HTTP/1.1Host: storage.aliyun.comDate: dateAuthorization: signatureValue返回消息头示例:x-oss-request-id: 2403382433A2EDA8Allow: GET, DELETE, HEAD, PUTContent-Type: application/xmlTransfer-Encoding: chunkedDate: Thu, 31 Mar 2011 10:01:52 GMTServer: 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。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表