google-code-export / twitcurl

Automatically exported from code.google.com/p/twitcurl
1 stars 1 forks source link

2nd sample only works with trunk #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Just a note.

The second sample only works when code is checked out from trunk.
A mention that it uses PIN does not really clarify that it is the trunk.

Original issue reported on code.google.com by JorisSpe...@gmail.com on 5 Aug 2011 at 7:26

GoogleCodeExporter commented 9 years ago
twitCurl is very good lib.Thanks a lot for your good work.
I found that libCurl in Windows has memory leak.The procedure of getting PIN 
result in application cracking.On windows,i replace the libCurl with 
WinHttpCient ,so that
twitCurl will not depend on Openssl,libCurl.

WinHttpClient
Gets the content of a web page into a project without the WinHttp APIs mixed in 
my source code using a WinHttp wrapper.
http://www.codeproject.com/KB/IP/win_HTTP_wrapper.aspx

Attach is the my twitCurl. 

Original comment by monke...@gmail.com on 26 Aug 2011 at 3:08

Attachments:

GoogleCodeExporter commented 9 years ago
cURL has no memory leak in Windows.
http://curl.haxx.se/changes.html
Just keep your libraries up to date as your updates for your os.

But what has this, not using cURL, to do with my comment about the Trunk code?

Original comment by JorisSpe...@gmail.com on 26 Aug 2011 at 4:30

GoogleCodeExporter commented 9 years ago
>>But what has this, not using cURL, to do with my comment about the Trunk code?

Yes ,with my code,you don't need cURL,Openssl to do the same funtions of 
twitCURL.
It will decrease the size of final application In windows.
The memory leak happen when the cURL loads openssl to perform a  https request.
I use VS 2008.

Original comment by monke...@gmail.com on 29 Aug 2011 at 3:41

GoogleCodeExporter commented 9 years ago
The cURL used here is two years old. I would recommend to download your own 
The use of an ide doesn't have result on the release/debug build. Personnaly, I 
don't trust inlcuded library that are available from third parties. I go 
directly to the source and get my own current stabel copy.

I don't see the advantage of using the win_HTTP_wrappers. It works only on 
Windows and altering a whole project to save 180KB of data is for me too much 
work. Good work though by changing the code to your needs. I am still 
converting some code to plain C for embedded use.

Original comment by JorisSpe...@gmail.com on 29 Aug 2011 at 5:38

GoogleCodeExporter commented 9 years ago
Code from trunk and branch are now merged, so that there's always only one 
codebase :) By the way, cURL is also updated to latest version.

Thanks for the headsup.

Original comment by swatkat....@gmail.com on 18 Sep 2011 at 4:42