cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Help translate CURL to libcurl please

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

On Thu, May 8, 2008 at 10:55 PM, Koopa One <koopaone_at_gmail.com> 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 http://www.xxxxx.com/public/xxxxx.html
>
> the second one gets the files with sending the cookie stored before.
> curl --cookie cookie.txt -o xxxxx.rar --referer
> http://www.xxxxx.com/public/xxxxx.html
> http://www.xxxxxx.com/public/view/xxxxx.html
>
> 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
http://www.xxxxx.com/public/xxxxx.html
curl --libcurl -d debugfilename.txt --cookie cookie.txt -o xxxxx.rar
--referer http://www.xxxxx.com/public/xxxxx.html
http://www.xxxxxx.com/public/view/xxxxx.html

Somebody correct me if I am wrong :)

Regards,
Karandeep
Received on 2008-05-08

These mail archives are generated by hypermail.

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

File upload with ASP.NET