|
@@ -74,12 +74,11 @@ func HttpRequest(url string, ak string, sk string, timestamp int64, requestByte
|
74
|
74
|
csbHP.SetVersion("1.0.0")
|
75
|
75
|
|
76
|
76
|
//添加附加的http请求头 (可以定义多条)
|
77
|
|
- key := "_api_access_key=" + ak + "&_api_name=" + "hssServives" + "&_api_timestamp=" + strconv.FormatInt(timestamp, 10) + "&_api_version=" + "1.0.0"
|
|
77
|
+ //key := "_api_access_key=" + ak + "&_api_name=" + "hssServives" + "&_api_timestamp=" + strconv.FormatInt(timestamp, 10) + "&_api_version=" + "1.0.0"
|
78
|
78
|
csbHP.AddHeader("_api_timestamp", strconv.FormatInt(timestamp, 10))
|
79
|
79
|
csbHP.AddHeader("_api_name", "hssServives")
|
80
|
80
|
csbHP.AddHeader("_api_version", "1.0.0")
|
81
|
81
|
csbHP.AddHeader("_api_access_key", ak)
|
82
|
|
- csbHP.AddHeader("_api_signature", hmacsha1(key, sk))
|
83
|
82
|
csbHP.AddHeader("Content-Type", "application/json;charset=UTF-8")
|
84
|
83
|
|
85
|
84
|
//request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|