QcloudApi / qcloudapi-sdk-python

Tencent Cloud SDK for Python
https://cloud.tencent.com/
Other
182 stars 70 forks source link

签名计算问题 #3

Closed newlightdd closed 6 years ago

newlightdd commented 8 years ago

计算签名里面的一句中 srcStr = method.upper() + requestHost + requestUri + '?' + "&".join(k.replace("_",".") + "=" + str(list[k]) for k in sorted(list.keys()))

为什么要把"_" 替换成 "."?

QcloudApi commented 6 years ago

php框架历史遗留问题,有兴趣可以参见https://stackoverflow.com/questions/3742653/why-strings-in-post-can-not-contain-a-dot