"method": "post",
"url": parserApiUrl,
"data": {
"url": s3BaseUrl + imageKey
},
"headers": {
"x-api-key": "sdsdasdwdw"
}
我通过这个步骤找到了解决方案
urlConnection = (HttpURLConnection) url
                        .openConnection();
                urlConnection.setDoOutput(true);
                urlConnection.setRequestMethod("POST");
                urlConnection.setRequestProperty("Content-Type", "application/json");
                urlConnection.setRequestProperty("x-api-key", x_api);
                urlConnection.setRequestProperty("Accept", "application/json");
                String datajson =  "{\"file\": \""+imageString.trim()+"\"}";
                Log.e("data","json:"+datajson);
                OutputStream os = urlConnection.getOutputStream();
                os.write(datajson.getBytes("UTF-8"));
                os.close();
| 归档时间: | 
 | 
| 查看次数: | 5006 次 | 
| 最近记录: |