Jsoup HTTP POST with payload
问题 I am trying to make this http request via Jsoup: http://api.decarta.com/v1/[KEY]/batch?requestType=geocode as given here. And here is my code for the same: String postUrl=postURLPrefix+apiKey+"/batch?requestType=geocode"; System.out.println(postUrl); String response= Jsoup.connect(postUrl).timeout(60000).ignoreContentType(true) .header("Content-Type", "application/json;charset=UTF-8") .method(Connection.Method.POST) .data("payload",jsonPayload.toString()) .execute() .body(); The jsonPayload