MCPcopy Create free account
hub / github.com/acl-dev/acl / doPost

Method doPost

lib_acl_cpp/samples/ssl/https_proxy/http_servlet.cpp:127–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127bool 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}

Callers

nothing calls this directly

Calls 8

getClientMethod · 0.80
header_disableMethod · 0.80
getRemoteHostMethod · 0.80
getRequestUriMethod · 0.80
getLocalAddrMethod · 0.80
formatMethod · 0.45
c_strMethod · 0.45
http_requestMethod · 0.45

Tested by

no test coverage detected