通过POST方式请求数据
@param url URL
@param bodies 数据(Map<String, String>)
@return 响应数据（String）
550157
public static String post(String url, Map<String, String> bodies) {
        ExceptionUtil.notNull(url);
        return post(url, null, null, null, bodies, false);
    }
821921
private String doPostByUrl(String uri, String param) throws IOException {
        HttpURLConnection connection;
        URL url = new URL(uri);

        connection = (HttpURLConnection)url.openConnection();           // 新建连接实例
        connection.setConnectTimeout(Constant.DEFAULT_CONN_TIMEOUT);    // 设置连接超时时间，单位毫秒
        connection.setReadTimeout(Constant.DEFAULT_READ_TIMEOUT);       // 设置读取数据超时时间，单位毫秒
        connection.setDoInput(true);                                    // 是否打开输出流 true|false
        connection.setDoOutput(true);                                   // 是否打开输入流true|false
        connection.setRequestMethod(Constant.RequestMethodPost);        // 提交方法POST|GET
        connection.setUseCaches(false);                                 // 是否缓存true|false
        connection.connect();                                           // 打开连接端口

         out = new (connection.getOutputStream());
        out.writeBytes(param);
        out.flush();
        out.close();

        BufferedReader reader
                = new BufferedReader(
                        new InputStreamReader(connection.getInputStream(),
                                                Constant.DEFAULT_CHARSET));
        StringBuilder buffer = new StringBuilder();
        String line;
        while ((line = reader.readLine())!= null) {
            buffer.append(line);
        }

        // 关闭连接
        reader.close();
        connection.disconnect();

        return buffer.toString();
    }
515404
public RequestResponse doPost(String url, Map<String, Object> headers,
            Map<String, Object> urlParams, Object requestData) {
        RequestResponse rr = initRequestResponse("POST", url, headers, urlParams, requestData);
        Request.Builder requestBuilder = buildRequest(url, headers, urlParams)
                .post(buildRequestBody(rr));
        return doCall(client, requestBuilder.build(), rr);
    }
1059970
def postURL(self, url, headers, body):
        
        new_url = url
        if body is not None:
            new_url = FileSea.convert_body(url, body)
        return self.getURL(new_url, headers)
289486
public static HttpResponse executeGet(final String url,
                                          final Map<String, Object> parameters) {
        try {
            return executeGet(url, null, null, parameters);
        } catch (final Exception e) {
            LOGGER.error(e.getMessage(), e);
        }
        return null;
    }
889525
public static String get(String url,
                             Map<String, String> headers,
                             String params) throws IOException {

        // 参数
        if (StringUtil.isNotEmpty(params)) {
            url += "?" + params;
        }

        HttpURLConnection httpUrlConn = httpUrlConn(url);
        httpUrlConn.setDoInput(true);
        httpUrlConn.setRequestMethod(Constant.RequestMethodGet);

        // header
        if (headers != null) {
            header(headers, httpUrlConn);
        }

        httpUrlConn.connect();

        return readIO(httpUrlConn);
    }
149507
public <T> String postObject(
                    final String url,
                    final T object,
                    final Class<T> type
                    )
    {
        _LOG_.debug( "HTTP POST: URL=" + url
                        + ", request type=" + type );

        HttpHeaders  request_headers = new HttpHeaders();
        request_headers.setContentType( getObjectMediaType() );
        HttpEntity<T> request_entity = new HttpEntity<T>( object, request_headers );

        URI  location = null;
        try {
            location= _newRestTemplate().postForLocation( url, request_entity );
            //throws RestClientException
        } catch (Exception ex) {
            throw new HttpException( ex );
        }

        return location.toString();
    }
416380
public RequestTemplate body(Request.Body body) {
    this.body = body;

    header(CONTENT_LENGTH);
    if (body.length() > 0) {
      header(CONTENT_LENGTH, String.valueOf(body.length()));
    }

    return this;
  }
1191871
function pPostUrl (url, body){
    var options = {
        method: 'POST',
        uri: url,
        body: body,
        json: true // Automatically stringifies the body to JSON
    };
    return rp(options);
}
538212
public function post(string $url, array $params = [])
    {
        return $this->send('POST', $url, [
            $this->bodyFormat => $params,
        ]);
    }
355144
public static String post(String url, String body) {
        return request(HttpRequest.post(replaceLocalHost(url)), body).body();
    }
1153758
public CloseableHttpResponse postJson(String url, String json, Map<String, String> reqHeaders) throws IOException {
        CloseableHttpClient req = getClient();
        CloseableHttpResponse resp = null;
        HttpPost post = new HttpPost(url);
        addHeaders(post, reqHeaders);
        post.setHeader(json, url);
        StringEntity input = new StringEntity(json, ContentType.APPLICATION_JSON);
        post.setEntity(input);
        resp = req.execute(post);
        return resp;
    }
1312516
public function post($url, $body = [], $headers = [], $options = [])
    {
        return $this->request('POST', $url, $body, $headers, $options);
    }
988874
public String doPost(String url, String body) throws IOException {
        HttpPost httpPost = new HttpPost(getWsapiUrl() + url);
        httpPost.setEntity(new StringEntity(body, "utf-8"));
        return doRequest(httpPost);
    }
805179
public static String get(String url, Map<String, String> body) {
        return get(url, JSONObject.toJSONString(body));
    }
589297
public static void post(URL url, String params) throws IOException {
        URLConnection conn = url.openConnection();
        if (conn instanceof HttpURLConnection) {
            ((HttpURLConnection) conn).setRequestMethod("POST");
            conn.setRequestProperty("Content-Type" , "application/json");
        }
        OutputStreamWriter writer = null;
        try {
            conn.setDoOutput(true);
            writer = new OutputStreamWriter(conn.getOutputStream(),
                    Charset.forName("UTF-8"));
            // write parameters
            writer.write(params);
            writer.flush();
        } finally {
            if (writer != null) {
                writer.close();
            }
        }
    }
522028
public static String put(String url, String body) {
        return request(HttpRequest.put(replaceLocalHost(url)), body).body();
    }