I started working with android.app.DownloadManager and ran into a problem.
By default, the DM sends an HTTP GET request to download the file:
GET http://www.example.com/getfile HTTP / 1.1
Cookie: id = sdfsdf; Max-Age = 10,800,000; Path = /
Host: ___
Connection: Keep-Alive
User-Agent: AndroidDownloadManager Paros / 3.2.13
Content Length: 0
But I need to send some data to the request (e.g. json string)
Is there a way to send an HTTP POST request to the DownloadManager
source share