Home » U++ Library support » U++ MT-multithreading and servers » HTTP Agent & WebSSL memory leak
HTTP Agent & WebSSL memory leak [message #16780] |
Fri, 11 July 2008 09:35  |
phirox
Messages: 49 Registered: December 2007
|
Member |
|
|
A small problem in Web/httpcli.cpp, the header "Agent: " should be "User-Agent: ", the first one doesn't even exist and I needed user-agent because certain websites give different results based upon it.
Also I recommend adding the following line to show a preference of UTF-8 instead of ISO-8859-1:
request << "Accept-Charset: UTF-8,*\r\n";
And in Web/WebSSL/util.cpp I need to comment the following line when using SSLClientSocket, because else I get a heap error on exiting:
CRYPTO_set_mem_functions(SSLAlloc, SSLRealloc, SSLFree);
Edit:
Found another small bug, when a server sends back chunked data that is gzipped it tries to decode the body instead of chunked, fix for "String HttpClient::Execute(Gate2<int, int> progress)" in the last lines:
if(tc_chunked) body = chunked;
if(ce_gzip) body = GZDecompress(body);
return body;
[Updated on: Mon, 14 July 2008 15:57] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed May 14 12:23:33 CEST 2025
Total time taken to generate the page: 0.01657 seconds
|