| 77 | } |
| 78 | |
| 79 | bool https_request::do_plain(acl::http_request& req) |
| 80 | { |
| 81 | printf("Begin get body in plain\r\n"); |
| 82 | |
| 83 | acl::string body; |
| 84 | if (!req.get_body(body, to_charset_)) { |
| 85 | logger_error("get http body error"); |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | if (debug_) { |
| 90 | printf("plain body:\r\n(%s)\r\n", body.c_str()); |
| 91 | } else { |
| 92 | printf("plain body length: %zd\r\n", body.size()); |
| 93 | } |
| 94 | |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | bool https_request::do_xml(acl::http_request& req) |
| 99 | { |