我正在android apk上工作,并且我已经使用api在apk中进行数据传输,并且我已经使用php curl_url进行了调用api
我通过在此应用程序中使用ssl捕获来测试1个应用程序1个api被调用,并且该api中的数据为post,post主体如下所示
--45c9c4bd-ab71-463d-ba03-dc8e77dcb812
Content-Disposition: form-data; name="id"
Content-Transfer-Encoding: binary
Content-Type: text/plain; charset=utf-8
Content-Length: 1
5
--45c9c4bd-ab71-463d-ba03-dc8e77dcb812
Content-Disposition: form-data; name="tid"
Content-Transfer-Encoding: binary
Content-Type: text/plain; charset=utf-8
Content-Length: 36
2dd38431-f4b0-46ff-a9ec-5b7d79502763
--45c9c4bd-ab71-463d-ba03-dc8e77dcb812
Content-Disposition: form-data; name="active"
Content-Transfer-Encoding: binary
Content-Type: text/plain; charset=utf-8
Content-Length: 1
1
--45c9c4bd-ab71-463d-ba03-dc8e77dcb812
Content-Disposition: form-data; name="time"
Content-Transfer-Encoding: binary
Content-Type: text/plain; charset=utf-8
Content-Length: 13
1559969257885
--45c9c4bd-ab71-463d-ba03-dc8e77dcb812--
请告诉我我如何以url形式转换此数据
像name=myname&age=myage