huaweicloud-sdk-c-obs icon indicating copy to clipboard operation
huaweicloud-sdk-c-obs copied to clipboard

x-obs-date格式为中文格式时,请求obs报错

Open njustlpp opened this issue 2 years ago • 1 comments

x-obs-date:周二, 02 8月 2022 11:36:53 GMT errorXmlCallback errorXml : Error/Code : AccessDenied errorXmlCallback errorXml : Error/Message : OBS authentication requires a valid Date or x-obs-date header

njustlpp avatar Oct 09 '22 08:10 njustlpp

在调用sdk时设置如下应该就没问题了,参考下面的代码

#include <locale.h>

setlocale(LC_TIME, "en_GB.UTF-8");

zzq996 avatar Jul 17 '23 02:07 zzq996