| 80 | } |
| 81 | |
| 82 | bool https_request::do_xml(acl::http_request& req) |
| 83 | { |
| 84 | acl::xml1 body; |
| 85 | if (req.get_body(body, to_charset_)) { |
| 86 | logger_error("get http body error"); |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | printf(">>>xml body:\r\n[%s]\r\n", body.to_string()); |
| 91 | return true; |
| 92 | } |
| 93 | |
| 94 | bool https_request::do_json(acl::http_request& req) |
| 95 | { |