Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
phirox is currently offline  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

 
Read Message
Read Message
Previous Topic: uploading progress
Next Topic: StaticMutex/ONCELOCK question
Goto Forum:
  


Current Time: Sun May 05 18:15:40 CEST 2024

Total time taken to generate the page: 0.02530 seconds