技术员联盟提供win764位系统下载,win10,win7,xp,装机纯净版,64位旗舰版,绿色软件,免费软件下载基地!

当前位置:主页 > 教程 > 服务器类 >

OSS不支持的操作

来源:技术员联盟┆发布时间:2019-02-21 12:04┆点击:

如果试图以不支持的操作来访问某个资源,返回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。