cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

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 10:26:39 -0230

Bugs item #3363020, was opened at 2011-07-11 10:26
Message generated for change (Tracker Item Submitted) made by jeffrega
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3363020&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ranger (jeffrega)
Assigned to: Daniel Stenberg (bagder)
Summary: curl_easy_perform not working cross platform

Initial Comment:
Hi. Using libcurl v 7.20, Windows 7 and Ubuntu 9

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

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3363020&group_id=976
Received on 2011-07-11

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET