curl-library
RE: curl .. strange checksums
Date: Mon, 29 Apr 2002 11:37:24 +0100
Hi, just to tell you a little more about my problem.
I have installed Curl version 7.9.6 from scratch on an i586 suse linux
platform. I'm transferring files to a simple perl upload script on an apache
1.3.26 server using curls file upload, curl_easy_setopt(curl, CURLOPT_URL,
"http://...../cgi-bin/upload.pl");
The file transfers fine with the exception that at the end of the text
something similar to
-curlnKe7bXTbVMHv6iOPhvhxdJrYqc-
is appended. Would apache be adding this in?
Yours, Catherine
On Sat, 27 Apr 2002, Cath :) wrote:
> I have a query about Curl - not sure if i have the proper address. Sorry if
> I don't. Basically the query is I have written a small application using
> libcurl which transfers files using HTTP. (Libcurl is installed with
> OpenSSL.)
I'd suggest that you post questions like this, and possible follow-ups to the
libcurl mailinglist, to which I CC this reply. You can subscribe to this
mailing list on this web page:
http://lists.sourceforge.net/lists/listinfo/curl-library
> The problem is curl writes some sort of checksum?? to the bottom of the
> files and I was wondering if you knew of a quick solution to remove this.
libcurl does not write any checksums, nor does it add any extra info or data
by itself. Instead, libcurl makes an effort to transfer the data exactly as
the remote server provides it.
If you get extra data at the end of a document, it ends up there because of
one (or more) out of three possible reasons:
1. There's a bug in libcurl that adds data. I don't consider this very likely
since there are very many people using libcurl without this effect.
2. The server includes the data.
3. Your application makes this data get appended. I'd say that this is much
more likely than anything else.
> I need to prevent it from even opening the file because as part of my
> project I also sign the files and as curl is editing the files, the
> signature check returns a negative response at the destination.
I suspect that you for example think that the data passed to your write
callback is zero terminated so when you write that data, you get garbage at
the end. Or something similar to this.
I think we'll have a bigger chance of helping out if you tell us which
libcurl version, on which operating system and possibly some small snippests
showing how you're using libcurl.
(Lately, I've been hanging out on IRC over at irc.openprojects.net too, so
popping in on the #curl channel could be another way to meet and talk.)
Received on 2002-04-29