| 313 | } |
| 314 | |
| 315 | apr_status_t md_http_POST_create(md_http_request_t **preq, md_http_t *http, const char *url, |
| 316 | struct apr_table_t *headers, const char *content_type, |
| 317 | struct apr_bucket_brigade *body, int detect_len) |
| 318 | { |
| 319 | md_http_request_t *req; |
| 320 | apr_status_t rv; |
| 321 | |
| 322 | rv = req_create(&req, http, "POST", url, headers); |
| 323 | if (APR_SUCCESS == rv) { |
| 324 | rv = req_set_body(req, content_type, body, -1, detect_len); |
| 325 | } |
| 326 | *preq = (APR_SUCCESS == rv)? req : NULL; |
| 327 | return rv; |
| 328 | } |
| 329 | |
| 330 | apr_status_t md_http_POSTd_create(md_http_request_t **preq, md_http_t *http, const char *url, |
| 331 | struct apr_table_t *headers, const char *content_type, |
no test coverage detected