httpc
httpc copied to clipboard
SetData方法貌似没有
Request 中没有SetData方法 req := httpc.NewRequest(client) req.SetData("","")方法不可以
_,body,err:=req.SetUrl("https://api.m.jd.com/client.action?functionId=queryMaterialProducts&client=wh5").SetMethod("get").Send().End()
这个的body返回空是什么原因呢
使用body.NewUrlEncode() 例如: b := body.NewUrlEncode() b.setData("","") req.SetBody(b)