0

The post Which I Use QT's QNetworkAccessManager received by beego doesn't have Form fields. but its content-length is not empty.

like this:

{Method:POST URL://search Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Content-Type:[multipart/form-data; boundary=---------------------2018-05-11 09:42:02] Content-Length:[949776] Connection:[Keep-Alive] Accept-Encoding:[gzip, deflate] Accept-Language:[zh-CN,en,*] User-Agent:[Mozilla/5.0]] Body:0xc04214ae80 GetBody: ContentLength:949776 TransferEncoding:[] Close:false Host:#.#.#.#:# Form:map[] PostForm:map[] MultipartForm: Trailer:map[] RemoteAddr::#.#.#.#:# RequestURI://search TLS: Cancel: Response: ctx:0xc04214aec0}

But when I post this to PHP, $_POST has the fileds

eyllanesc
  • 235,170
  • 19
  • 170
  • 241

0 Answers0