用post方法发送json数据失败,

bsdx866 · · 2203 次点击
http.NewRequest("post", url, bytes.NewReader(kqData)) post 用大写试试(http.MethodPost),另外出现错误环视打印一下日志较好
#5
更多评论
服务端响应失败,还是数据读取失败
#1
> HTTP methods are **case-sensitive**, which means they should only be used in capital letters. Moreover, this is in contrast to HTTP header field names, which are case-insensitive.
#2