���� text/xml ��������
| 97 | |
| 98 | // ���� text/xml �������� |
| 99 | bool do_xml(acl::http_request& req) |
| 100 | { |
| 101 | acl::xml1 body; |
| 102 | if (req.get_body(body, to_charset_) == false) |
| 103 | { |
| 104 | logger_error("get http body error"); |
| 105 | return false; |
| 106 | } |
| 107 | acl::xml_node* node = body.first_node(); |
| 108 | while (node) |
| 109 | { |
| 110 | const char* tag = node->tag_name(); |
| 111 | const char* name = node->attr_value("name"); |
| 112 | const char* pass = node->attr_value("pass"); |
| 113 | printf(">>tag: %s, name: %s, pass: %s\r\n", |
| 114 | tag ? tag : "null", |
| 115 | name ? name : "null", |
| 116 | pass ? pass : "null"); |
| 117 | node = body.next_node(); |
| 118 | } |
| 119 | return true; |
| 120 | } |
| 121 | |
| 122 | // ���� text/json �������� |
| 123 | bool do_json(acl::http_request& req) |
nothing calls this directly
no test coverage detected