SecretId
and SecretKey
of the API to be called and understand the API request path, method, and parameters.http://service-xxxxxxxx-1234567890.ap-guangzhou.apigateway.myqcloud.com/release// Enter the URL of the API service you want to call
POST
QueryParam_a=value1&QueryParam_b=value2
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8Accept-Language: zh-cnConnection: Keep-AliveHost: service-xxxxxxxx-1234567890.ap-guangzhou.apigateway.myqcloud.com/releaseUser-Agent: Mozila/4.0(compatible;MSIE5.01;Window NT5.0)Accept-Encoding: gzip,deflateContent-Type: application/x-www-form-urlencoded;charset=utf-8// Request body type, which should be set according to the actual request body content.X-Client-Proto: httpX-Client-Proto-Ver: HTTP/1.1X-Real-IP: 163.xxx.xx.244X-Forwarded-For: 106.xxx.xx.102, 163.xxx.xx.244Date: Sun, 21 Sep 2017 06:18:21 GMTAuthorization: hmac id="AKIDCgXXXXXXXX48pN", algorithm="hmac-sha1", headers="Date Host", signature="630123456789da9c"// Signature. For specific signature algorithms, see the key calculation method in authentication and security
Date
or X-Date
and Authorization
. More optional headers can be added in the request. If Date
is used, the server will not check the time; if X-Date
is used, the server will check the time.Date
header is the construction time of the HTTP request in GMT format, such as Fri, 09 Oct 2015 00:00:00 GMT.X-Date
header is the construction time of the HTTP request in GMT format, such as Mon, 19 Mar 2018 12:08:40 GMT. It cannot deviate from the current time for more than 15 minutes.Authorization
header, see Key Pair Authentication. For sample signatures generated in different programming languages, see API Gateway.Response Code | Description |
200 ≤ code < 300 | Success |
300 ≤ code < 400 | Redirect, which requires subsequent operations to complete the request |
400 ≤ code < 500 | Client error |
code > 500 | Server error |
Content-Type: text/html; charset=UTF-8Content-Length: 122Date: Sun, 21 Sep 2017 06:46:04 GMTServer: squid/3.5.20Connection: closeSet-Cookie:1P_JAR=2017-09-18-06; expires=Mon, 25-Sep-2017 06:46:04 GMT; path=/; domain=.qq.comX-Secret-ID:AKIDXXXXXXXX48pN// `secret_id` in key pairX-UsagePlan-ID:XXXXXXXX// ID of the usage plan bound to the key pairX-RateLimit-Limit:500// Throttling configuration in the usage planX-RateLimit-Used:100/125// Throttling usage in the usage plan
Was this page helpful?