Sobre cURL y listas de comandos.

Discusión en general sobre Gemix.
Post Reply
User avatar
erkosone
Posts: 10656
Joined: Tue Feb 24, 2009 2:13 pm
Location: Barcelona.
Contact:

Sobre cURL y listas de comandos.

Post by erkosone »

Alguien lo ha probado? habéis tenido problemas con los arrays de strings en gemix? algo?
Hablo de la opción

[Codebox=text file=Untitled.txt]CURLOPT_QUOTE
Pass a pointer to a linked list of FTP or SFTP commands to pass to the server prior to your FTP request.
This will be done before any other commands are issued (even before the CWD command for FTP).
The linked list should be a fully valid list of 'struct curl_slist' structs properly filled in with text strings.
Use curl_slist_append(3) to append strings (commands) to the list, and clear the entire list afterwards with curl_slist_free_all(3).
Disable this operation again by setting a NULL to this option. When speaking to a FTP (or SFTP since 7.24.0) server, prefix the command with an asterisk (*)
to make libcurl continue even if the command fails as by default libcurl will stop at first failure.
The set of valid FTP commands depends on the server (see RFC 959 for a list of mandatory commands).
The valid SFTP commands are: chgrp, chmod, chown, ln, mkdir, pwd, rename, rm, rmdir, symlink (see curl (1)) (SFTP support added in 7.16.3)[/Codebox]
Post Reply

Return to “General”