| 125 | } |
| 126 | |
| 127 | bool http_servlet::doPost(acl::HttpServletRequest& req, |
| 128 | acl::HttpServletResponse& res) |
| 129 | { |
| 130 | handled_ = true; |
| 131 | acl::http_client* conn = req.getClient(); |
| 132 | conn->header_disable("Accept-Encoding"); |
| 133 | logger_request(req); |
| 134 | |
| 135 | // ���������� url���Ա�����ʹ�� |
| 136 | const char* host = req.getRemoteHost(); |
| 137 | const char* uri = req.getRequestUri(); |
| 138 | if (host == NULL || *host == 0) |
| 139 | host = req.getLocalAddr(); |
| 140 | |
| 141 | url_.format("http://%s%s", host, uri ? uri : "/"); |
| 142 | out_.format(">>> request url: %s\r\n", url_.c_str()); |
| 143 | |
| 144 | https_client client(out_, client_ssl_conf_); |
| 145 | return client.http_request(req, res); |
| 146 | } |
nothing calls this directly
no test coverage detected