|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3363020 ] curl_easy_perform not working cross platform
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 11 Jul 2011 23:00:35 +0200
Bugs item #3363020, was opened at 2011-07-11 14:56
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
I create a file using standard fopen(), fwrite(), fflush(), fclose() and then copy to my web server,
I have a client that uses libcurl and curl_easy_perform() to download the file. This is where I get the mixed results.
When I create the file on a Windows machine, only the Windows client can pass my integrity check on the downloaded file (decrypt file, check valid signature), Fails on Linux.
And when i create the file on Linux, only the Linux client can pass. Fails on Windows.
I did a dump of the downloaded file's buffer and its exactly the same except the end of the buffer. It seems that at the end of the buffer on Linux there is a 0. But when done on Windows, there is an extra couple bytes at the end (presumably the EOF character?). And I do put the '\0' at the end before exiting the callback function.
I can't provide the URL or source code, but its very standard and simple, nothing special. Uses CURL_OPT_WRITEFUNCTION to write the data to a buffer in a callback function.
Any advice? Anyone seen anything like this before? If not I will assume its something with my reading/writing files.
Please let me know. Thanks
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info