Android Question HTTP POST Using Content-Dispostion

Rick Cardon

New Member
Licensed User
Could someone please post a sample using Content-Disposition Headers in OKHTTPUtils2 resembling the following POST request:

POST https://192.168.0.1/API/Upload HTTP/1.1
Content-Type: multipart/form-data; boundary=+++++
Content-Length: 87802
User-Agent: Android
Host: 192.168.0.1
Connection: Keep-Alive
Accept-Encoding: gzip

--+++++
Content-Disposition: form-data; name="ID"

2253557
--+++++
Content-Disposition: form-data; name="Device"

SM-T807V (6.0.1)
--+++++
Content-Disposition: form-data; name="DATE-STAMP"

07/20/2018
 

DonManfred

Expert
Licensed User
Longtime User
Use okhttputils2

Search for job.postmultipart
 
Upvote 0
Top