Httpurlconnection Very Slow
Can anyone spot why this takes ~20 sec? I am running the code below to post a JSON request to a local server 192.168.1.127. curl -H 'Content-type: application/json' -X POST http
Solution 1:
Add a request header that specifies the post content length.
con.setRequestProperty("Content-Length", "" + json.length());
Post a Comment for "Httpurlconnection Very Slow"