go-restful框架在http中获取form-data格式数据
使用go-restful框架获取form-data数据时候,网上查找了下有了大致的方法:r *http.Requestr.ParseFoem()r.Form.get(“自己想要获取的属性”)之后模仿着把此方法搬到了go-restful框架下的http请求中handleLogin(request *restful.Request, response *restful.Response)使用 request.Request.Form.Get(“PASSWORD”)这时候却获取不到属性中想要的数值,返
原创
2020-10-28 14:56:13 ·
2420 阅读 ·
0 评论