curl-library
Re. Re: Help: cURL download
Date: Sat, 8 Nov 2003 15:42:36 +0530
hi
we are trying to download a file using cURL.
We are facing few problems.
There is a php file which returns a zip file.
Earlier we used WinInet.Now we are planning to switch over to cURL.
We are calling the php page from c++
This works fine with WiInet.
The same php file is returning a blank file.(We are able to recieve the
header info. but
not the contents).
If we use the following code in php
$fp=fopen($filename, "r");
fpassthru($fp); or readfile( $filename );
cURL works fine.
We are using the following code to return a file
header("Location: ".$file_name);
we called the same page from IE it works fine but not in cURL.
This doesn't work.
Pls give us a solution
regards
skarthik.
----- Original Message -----
From: "Daniel Stenberg" <daniel-curl_at_haxx.se>
To: "libcurl Mailing list" <curl-library_at_lists.sourceforge.net>
Sent: Friday, November 07, 2003 9:37 PM
Subject: Re: Help: cURL download
> On Fri, 7 Nov 2003, Karthik wrote:
>
> > How To Download A Zipfile Using Libcurl. (ie) The Php Program Return
Only
> > The Zip File Content
>
> What is a zipfile if not the contents of it?
>
> > Plz Give Me A Sample Program To Download File From Server ( Not FTP).
>
> There are several examples included in every release archive of libcurl,
and
> they're also available on the site:
>
> http://curl.haxx.se/libcurl/c/example.html
>
> I also recommend reading the tutorial before you ask too many questions:
>
> http://curl.haxx.se/libcurl/c/the-guide.html
>
> All these discuss using libcurl from C. Since you mentioned PHP, you might
> want to look for PHP examples instead.
>
> --
> Daniel - been obfuscating curl source code since 1998.
> [[ Do not post private mails to this email address. They won't reach
me. ]]
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
>
>
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
Received on 2003-11-08