Re: multi certificate with curl ftp ssl

Shanshui Liu <[email protected]>
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
Hi Nico,

What Daniel meant is, append "--libcurl" to that command line and it would
display a libcurl-using code in C. Since PHP/CURL uses libcurl, converting
it to PHP would be a really easy task. You would probably just need to
change curl_easy_* function calls to curl_* as well as a few syntax
adjustments to get the code working.

http://curl.haxx.se/docs/manpage.html (look for "--libcurl")
http://curl.haxx.se/libcurl/c/simple.html

With regards,
Liu Shan Shui
http://lx.sg/
"Life would be much easier if I had the source code." - Anonymous


On Thu, Jan 21, 2010 at 1:29 AM, Nico <[email protected]> wrote:

> Hello,
>
>  i want to convert this function curl in php code:
>>>>
>>>>
>>>> curl --ftp-ssl --capath /home/data/ --cert /home//data/certif.cer
>>>>
>>>          --cacert  /home/data/societe.cer
>>>
>>>>      -u username:password ftp://ftpmachin.societe.net:21
>>>>
>>>
> and you're suggest is complicated for me , i don't know to convert it to C
> and php finally
>
> it's possible you help me to write php code curl to connect ftp server with
> two certificate -cer and -cacert ?
>
> i use php curl 7.18 and i always have error 530 during connection ftp. my
> certificate are not including correctly.
> i write all the set_opt disponible in curl but anyone work.
>
> thks for your help
>
>
>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.