技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機(jī)純凈版,64位旗艦版,綠色軟件,免費(fèi)軟件下載基地!

當(dāng)前位置:主頁(yè) > 教程 > 服務(wù)器類 >

OSS不支持的操作

來(lái)源:技術(shù)員聯(lián)盟┆發(fā)布時(shí)間:2019-02-21 12:04┆點(diǎn)擊:

如果試圖以不支持的操作來(lái)訪問(wèn)某個(gè)資源,返回405 Method Not Allowed錯(cuò)誤


請(qǐng)求示例: 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>

注意:如果訪問(wèn)的資源是 /bucket/, ResourceType應(yīng)該是bucket,如果訪問(wèn)的資源是 /bucket/object,ResourceType應(yīng)該是object。