cURL / Mailing Lists / curl-library / Single Mail


Re: Help translate CURL to libcurl please

From: Karandeep Malik <>
Date: Thu, 8 May 2008 23:13:47 +0530

On Thu, May 8, 2008 at 10:55 PM, Koopa One <> wrote:
> Ok, i have 2 CURL-Lines i need to use in libcurl. As i am new to "curling" i
> hope someone can help me here:
> Ok, here is the code in my program, that i use to fetch a file (i call the
> curl.exe with that arguments out of my program):
> the first one fetches the cookie:
> curl -c cookie.txt -L
> the second one gets the files with sending the cookie stored before.
> curl --cookie cookie.txt -o xxxxx.rar --referer
> No i have found a wrapper for libcurl and want to do the program exactly the
> same. Unfortunatelly i dont know which switches are which keyword. Can
> someone PLEASE, PLEASE help?
> And is it possible to make 1 line out of these two?
> Btw, the coding-language is purebasic.
> Thx in advance
> P.S.: Sorry for my bad english, i hope someone understands what i want lol

I think this may help:-

curl --libcurl -d debugfilename.txt -c cookie.txt -L
curl --libcurl -d debugfilename.txt --cookie cookie.txt -o xxxxx.rar

Somebody correct me if I am wrong :)

Received on 2008-05-08