require curl 7.17 higher http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html
| 159 | // require curl 7.17 higher |
| 160 | // http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html |
| 161 | Response S3InterfaceService::getBucketResponse(const S3Url &s3Url, const string &encodedQuery) { |
| 162 | HTTPHeaders headers; |
| 163 | headers.Add(HOST, s3Url.getHostForCurl()); |
| 164 | headers.Add(X_AMZ_CONTENT_SHA256, |
| 165 | "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"); // sha256hex |
| 166 | // of empty |
| 167 | // string |
| 168 | |
| 169 | SignRequestV4("GET", &headers, s3Url.getRegion(), s3Url.getPathForCurl(), encodedQuery, |
| 170 | this->params.getCred()); |
| 171 | |
| 172 | stringstream urlWithQuery; |
| 173 | urlWithQuery << s3Url.getFullUrlForCurl() << "?" << encodedQuery; |
| 174 | |
| 175 | return this->getResponseWithRetries(urlWithQuery.str(), headers); |
| 176 | } |
| 177 | |
| 178 | bool S3InterfaceService::parseBucketXML(ListBucketResult *result, xmlParserCtxtPtr xmlcontext, |
| 179 | string &marker) { |
nothing calls this directly
no test coverage detected