cvs: phpdoc-es /reference/curl/functions curl-setopt.xml
| From: | Federico Finos | Date: | Fri, 09 May 2003 20:33:24 +0000 |
| Subject: | cvs: phpdoc-es /reference/curl/functions curl-setopt.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-167@lists.php.net to get a copy of this message | ||
chubu Fri May 9 16:33:24 2003 EDT
Modified files:
/phpdoc-es/reference/curl/functions curl-setopt.xml
Log:
Traducción inicial del archivo.
Index: phpdoc-es/reference/curl/functions/curl-setopt.xml diff -u phpdoc-es/reference/curl/functions/curl-setopt.xml:1.1 phpdoc-es/reference/curl/functions/curl-setopt.xml:1.2 --- phpdoc-es/reference/curl/functions/curl-setopt.xml:1.1 Sun Apr 14 20:13:17 2002 +++ phpdoc-es/reference/curl/functions/curl-setopt.xml Fri May 9 16:33:23 2003 @@ -1,13 +1,15 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: chubu Status: ready --> <!-- splitted from ./es/functions/curl.xml, last change in rev 1.1 --> <!-- last change to 'curl-setopt' in en/ tree in rev 1.1 --> <refentry id="function.curl-setopt"> <refnamediv> <refname>curl_setopt</refname> - <refpurpose>Set an option for a CURL transfer</refpurpose> + <refpurpose>Asigna un valor a una opción de una sesión CURL</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>curl_setopt</methodname> <methodparam><type>int</type><parameter>ch</parameter></methodparam> @@ -15,286 +17,281 @@ <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> - The <function>curl_setopt</function> function will set options - for a CURL session identified by the <parameter>ch</parameter> - parameter. The <parameter>option</parameter> parameter is the - option you want to set, and the <parameter>value</parameter> is - the value of the option given by the - <parameter>option</parameter>. + La función <function>curl_setopt</function> asigna valores para opciones + de una sesión CURL identificada por el parámetro <parameter>ch</parameter>. + El parámetro <parameter>option</parameter> es la opción a la que + se desea asignar el valor indicado en el parámetro <parameter>value</parameter>. </para> <para> - The <parameter>value</parameter> should be a long for the - following options (specified in the <parameter>option</parameter> - parameter): + <parameter>value</parameter> debe ser un entero para las siguientes + opciones (especificada en el parámetro <parameter>option</parameter>); <itemizedlist> <listitem> <simpara> - <parameter>CURLOPT_INFILESIZE</parameter>: When you are - uploading a file to a remote site, this option should be used - to tell PHP what the expected size of the infile will be. + <parameter>CURLOPT_INFILESIZE</parameter>: Cuando subimos un + archivo a un sitio remoto, esta opción debe ser usada para + decirle a PHP cuál será el tamaño del archivo + de entrada. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_VERBOSE</parameter>: Set this option to a - non-zero value if you want CURL to report everything that is - happening. + <parameter>CURLOPT_VERBOSE</parameter>: Asigne un valor distinto + de cero a esta opción si desea que CURL reporte todo lo que + acontece. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_HEADER</parameter>: Set this option to a - non-zero value if you want the header to be included in the - output. + <parameter>CURLOPT_HEADER</parameter>: Asigne un valor distinto + de cero a esta opción si desea que el encabezado sea incluido + en la salida. </simpara> </listitem> <listitem> <para> - <parameter>CURLOPT_NOPROGRESS</parameter>: Set this option to - a non-zero value if you don't want PHP to display a progress - meter for CURL transfers + <parameter>CURLOPT_NOPROGRESS</parameter>: Asigne un valor distinto + de cero a esta opción si no desea que PHP muestre una barra de progreso + para las transferencias de CURL. <note> <simpara> - PHP automatically sets this option to a non-zero parameter, - this should only be changed for debugging purposes. + PHP automáticamente asigna un valor distinto de cero a esta opción, + esto sólo debe ser cambiado para operaciones de depuración. </simpara> </note> </para> </listitem> <listitem> <simpara> - <parameter>CURLOPT_NOBODY</parameter>: Set this option to a - non-zero value if you don't want the body included with the - output. + <parameter>CURLOPT_NOBODY</parameter>: Asigne un valor distinto + de cero a esta opción si no desea que el cuerpo sea incluido en + la salida. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FAILONERROR</parameter>: Set this option to - a non-zero value if you want PHP to fail silently if the HTTP - code returned is greater than 300. The default behaviour is - to return the page normally, ignoring the code. + <parameter>CURLOPT_FAILONERROR</parameter>: Asigne un valor distinto + de cero a esta opción si desea que PHP falle silenciosamente si + el código HTTP devuelto es mayor que 300. El comportamiento por + defecto es devolver la página normalmente, ignorando el código. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_UPLOAD</parameter>: Set this option to a - non-zero value if you want PHP to prepare for an upload. + <parameter>CURLOPT_UPLOAD</parameter>: Asigne un valor distinto + de cero a esta opción si desea que PHP se prepare para subir un archivo. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_POST</parameter>: Set this option to a - non-zero value if you want PHP to do a regular HTTP POST. - This POST is a normal application/x-www-from-urlencoded kind, - most commonly used by HTML forms. + <parameter>CURLOPT_POST</parameter>: Asigne un valor distinto + de cero a esta opción si desea que PHP realize un pedido HTTP POST regular. + Este post normalmente es del tipo application/x-www-from-urlencoded, + normalmente utilizado por los formularios HTML. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FTPLISTONLY</parameter>: Set this option to - a non-zero value and PHP will just list the names of an FTP - directory. + <parameter>CURLOPT_FTPLISTONLY</parameter>: Asigne un valor distinto + de cero a esta opción y PHP simplemente listará los nombres de + un directorio FTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FTPAPPEND</parameter>: Set this option to a - non-zero value and PHP will append to the remote file instead - of overwriting it. + <parameter>CURLOPT_FTPAPPEND</parameter>: Asigne un valor distinto + de cero a esta opción y PHP escribirá al final del archivo remoto + en lugar de sobreescribirlo. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_NETRC</parameter>: Set this option to a - non-zero value and PHP will scan your ~./netrc file to find - your username and password for the remote site that you're - establishing a connection with. + <parameter>CURLOPT_NETRC</parameter>: Asigne un valor distinto + de cero a esta opción y PHP registrará su archivo + ~./netrc para buscar el nombre de usuario y la clave del sitio remoto + con el que está estableciendo una conexión. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FOLLOWLOCATION</parameter>: Set this option - to a non-zero value to follow any "Location: " header that the - server sends as a part of the HTTP header (note this is - recursive, PHP will follow as many "Location: " headers that - it is sent.) + <parameter>CURLOPT_FOLLOWLOCATION</parameter>: Asigne un valor distinto + de cero a esta opción para seguir algún encabezado del tipo "Location: " + que el servidor envíe como parte de los encabezados HTTP (esto es recursivo, + PHP seguirá tantos encabezados "Location: " como le sean enviados). </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_PUT</parameter>: Set this option a non-zero - value to HTTP PUT a file. The file to PUT must be set with - the CURLOPT_INFILE and CURLOPT_INFILESIZE. + <parameter>CURLOPT_PUT</parameter>: Asigne un valor distinto + de cero a esta opción para enviar un archivo utilizando el método + HTTP PUT. El archivo a enviar debe ser especificado con las opciones + CURLOPT_INFILE y CURLOPT_INFILESIZE. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_MUTE</parameter>: Set this option to a - non-zero value and PHP will be completely silent with regards - to the CURL functions. + <parameter>CURLOPT_MUTE</parameter>: Asigne un valor distinto + de cero a esta opción para que PHP no genere ningúna + salida para las funciones CURL. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_TIMEOUT</parameter>: Pass a long as a - parameter that contains the maximum time, in seconds, that - you'll allow the curl functions to take. + <parameter>CURLOPT_TIMEOUT</parameter>: Asigna un valor que contiene + el tiempo máximo de ejecución, en segundos, para las + funciones CURL. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_LOW_SPEED_LIMIT</parameter>: Pass a long as - a parameter that contains the transfer speed in bytes per - second that the transfer should be below during - CURLOPT_LOW_SPEED_TIME seconds for PHP to consider it too slow - and abort. + <parameter>CURLOPT_LOW_SPEED_LIMIT</parameter>: Asigna un valor + a la velocidad mínima de transferencia en bytes por segundo. + Si la transferencia se mantiene por debajo de ese valor durante la + cantidad de segundos indicados en la opción CURLOPT_LOW_SPEED_TIME, + será considerada demasiado lenta y abortada por PHP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_LOW_SPEED_TIME</parameter>: Pass a long as - a parameter that contains the time in seconds that the - transfer should be below the CURLOPT_LOW_SPEED_LIMIT for PHP - to consider it too slow and abort. + <parameter>CURLOPT_LOW_SPEED_TIME</parameter>: Asigna un valor a + la cantidad de segundos que la transferencia debe permanecer debajo de + la velocidad indicada en CURLOPT_LOW_SPEED_LIMIT para que PHP la + considere demasiado lenta y aborte. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_RESUME_FROM</parameter>: Pass a long as a - parameter that contains the offset, in bytes, that you want - the transfer to start from. + <parameter>CURLOPT_RESUME_FROM</parameter>: Asigna un valor al desplazamiento, + en bytes, desde el cual desea que comience la transferencia. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_SSLVERSION</parameter>: Pass a long as a - parameter that contains the SSL version (2 or 3) to use. By - default PHP will try and determine this by itself, although, - in some cases you must set this manually. + <parameter>CURLOPT_SSLVERSION</parameter>: Asigna un valor + que contiene la versión de SSL (2 o 3) a usar. Por + defecto PHP trata de detectar la versión automáticamente, + pero en algúnos casos este valor deberá ser fijado manualmente. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_TIMECONDITION</parameter>: Pass a long as a - parameter that defines how the CURLOPT_TIMEVALUE is treated. - You can set this parameter to TIMECOND_IFMODSINCE or - TIMECOND_ISUNMODSINCE. This is a HTTP-only feature. + <parameter>CURLOPT_TIMECONDITION</parameter>: Asigna un valor + que define cómo será tratado CURLOPT_TIMEVALUE. + Puede fijar este parametro a TIMECOND_IFMODSINCE o a TIMECOND_ISUNMODSINCE. + Esta característica es sólo para HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_TIMEVALUE</parameter>: Pass a long as a - parameter that is the time in seconds since January 1st, 1970. - The time will be used as specified by the CURLOPT_TIMEVALUE - option, or by default the TIMECOND_IFMODSINCE will be used. + <parameter>CURLOPT_TIMEVALUE</parameter>: Asigna un valor + en segundos al tiempo transcurrido desde el 1 de Enero de 1970. + El tiempo será utilizado como sea especificado por la + opción CURLOPT_TIMEVALUE, o en su defecto se utilizará TIMECOND_IFMODSINCE. </simpara> </listitem> </itemizedlist> </para> <para> - The <parameter>value</parameter> parameter should be a string for - the following values of the <parameter>option</parameter> - parameter: + El parámetro <parameter>value</parameter> debe ser una cadena para los + siguientes valores del parámetro <parameter>option</parameter>: <itemizedlist> <listitem> <simpara> - <parameter>CURLOPT_URL</parameter>: This is the URL that you - want PHP to fetch. You can also set this option when - initializing a session with the <function>curl_init</function> - function. + <parameter>CURLOPT_URL</parameter>: Esta es la URL que se desea traer. + Ud. también puede fijar esta opción cuando se inicializa una + sesión con la función <function>curl_init</function>. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_USERPWD</parameter>: Pass a string - formatted in the [username]:[password] manner, for PHP to use - for the connection. connection. + <parameter>CURLOPT_USERPWD</parameter>: Asigna un valor de + cadena del tipo [usuario]:[clave], para ser usado por PHP + en la conexión. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_PROXYUSERPWD</parameter>: Pass a string - formatted in the [username]:[password] format for connection - to the HTTP proxy. + <parameter>CURLOPT_PROXYUSERPWD</parameter>: Asigna un valor de + cadena del tipo [usuario]:[clave], para ser usado en la + conexión al servidor proxy HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_RANGE</parameter>: Pass the specified range - you want. It should be in the "X-Y" format, where X or Y may - be left out. The HTTP transfers also support several - intervals, seperated with commas as in X-Y,N-M. + <parameter>CURLOPT_RANGE</parameter>: Asigna un rango en el + formato "X-Y", donde X o Y pueden ser dejados de lado. Las + transferencias HTTP también soportan varios intervalos, + separados por comas como en X-Y,N-M. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_POSTFIELDS</parameter>: Pass a string - containing the full data to post in an HTTP "POST" operation. + <parameter>CURLOPT_POSTFIELDS</parameter>: Asigna una cadena que + contiene todos los datos a ser enviados en una operación + HTTP "POST". </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_REFERER</parameter>: Pass a string - containing the "referer" header to be used in an HTTP request. + <parameter>CURLOPT_REFERER</parameter>: Asigna una cadena que + contiene el encabezado "referer" para ser usado en un requerimiento + HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_USERAGENT</parameter>: Pass a string - containing the "user-agent" header to be used in an HTTP - request. + <parameter>CURLOPT_USERAGENT</parameter>: Asigna una cadena que + contiene el encabezado "user-agent" para ser usado en un requerimiento + HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FTPPORT</parameter>: Pass a string - containing the which will be used to get the IP address to use - for the ftp "PORT" instruction. The POST instruction tells - the remote server to connect to our specified IP address. The - string may be a plain IP address, a hostname, a network - interface name (under UNIX), or just a plain '-' to use the - systems default IP address. + <parameter>CURLOPT_FTPPORT</parameter>: Pasa una cadena que + contiene el valor que será usado para obtener la dirección + IP a usar en la instrucción "PORT" de ftp. La instrucción "POST" + le indica al servidor remoto que se conecte a la direcci&on IP que le + especificamos. La cadena puede ser una dirección IP, un nombre de Host, + una interface de red (en UNIX), o simplemente un caracter '-' para usar + la dirección IP por defecto del sistema. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_COOKIE</parameter>: Pass a string - containing the content of the cookie to be set in the HTTP - header. + <parameter>CURLOPT_COOKIE</parameter>: Asigna una cadena con el + contenido de la cookie para ser incluida en el encabezado HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_SSLCERT</parameter>: Pass a string - containing the filename of PEM formatted certificate. + <parameter>CURLOPT_SSLCERT</parameter>: Asigna una cadena que + contiene el nombre del archivo que guarda el certificado con formato PEM. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_SSLCERTPASSWD</parameter>: Pass a string - containing the password required to use the CURLOPT_SSLCERT - certificate. + <parameter>CURLOPT_SSLCERTPASSWD</parameter>: Asigna una cadena que + contiene la clave requerida para usar el certificado indicado en la + opción CURLOPT_SSLCERT. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_COOKIEFILE</parameter>: Pass a string - containing the name of the file containing the cookiee data. - The cookie file can be in Netscape format, or just plain - HTTP-style headers dumped into a file. + <parameter>CURLOPT_COOKIEFILE</parameter>: Asigna una cadena que + contiene el nombre del archivo que guarda la información de + las cookies. Este archivo puede estar en formato Netscape, o simplemente + contener encabezados estilo HTTP. </simpara> </listitem> <listitem> <para> - <parameter>CURLOPT_CUSTOMREQUEST</parameter>: Pass a string to - be used instead of GET or HEAD when doing an HTTP request. - This is useful for doing DELETE or another, more obscure, HTTP - request. + <parameter>CURLOPT_CUSTOMREQUEST</parameter>: Asigna una cadena para + ser usada en lugar de GET o HEAD cuando se realiza un requerimiento HTTP. + Esto es útil para realizar DELETE ú otros requerimientos + HTTP más oscuros. <note> <simpara> - Don't do this without making sure your server supports the - command first. + No haga esto sin estar seguro de que su servidor soporta el comando especificado. </simpara> </note> </para> @@ -302,31 +299,31 @@ </itemizedlist> </para> <para> - The following options expect a file descriptor that is obtained - by using the <function>fopen</function> function: + Las siguientes opciones esperan un descriptor de archivo que es obtenido + por medio de la función <function>fopen</function>: <itemizedlist> <listitem> <simpara> - <parameter>CURLOPT_FILE</parameter>: The file where the output - of your transfer should be placed, the default is STDOUT. + <parameter>CURLOPT_FILE</parameter>: El archivo donde debe ser grabada la + salida generada por la transferencia. Por defecto es STDOUT. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_INFILE</parameter>: The file where the - input of your transfer comes from. + <parameter>CURLOPT_INFILE</parameter>: El archivo desde el que se leen los + datos para la transferencia. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_WRITEHEADER</parameter>: The file to write - the header part of the output into. + <parameter>CURLOPT_WRITEHEADER</parameter>: El archivo donde deben + ser grabados los encabezados de la salida de la transferencia. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_STDERR</parameter>: The file to write - errors to instead of stderr. + <parameter>CURLOPT_STDERR</parameter>: El archivo donde deben + ser grabados los errores, en lugar de stderr. </simpara> </listitem> </itemizedlist>
Index: phpdoc-es/reference/curl/functions/curl-setopt.xml diff -u phpdoc-es/reference/curl/functions/curl-setopt.xml:1.1 phpdoc-es/reference/curl/functions/curl-setopt.xml:1.2 --- phpdoc-es/reference/curl/functions/curl-setopt.xml:1.1 Sun Apr 14 20:13:17 2002 +++ phpdoc-es/reference/curl/functions/curl-setopt.xml Fri May 9 16:33:23 2003 @@ -1,13 +1,15 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: chubu Status: ready --> <!-- splitted from ./es/functions/curl.xml, last change in rev 1.1 --> <!-- last change to 'curl-setopt' in en/ tree in rev 1.1 --> <refentry id="function.curl-setopt"> <refnamediv> <refname>curl_setopt</refname> - <refpurpose>Set an option for a CURL transfer</refpurpose> + <refpurpose>Asigna un valor a una opción de una sesión CURL</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>curl_setopt</methodname> <methodparam><type>int</type><parameter>ch</parameter></methodparam> @@ -15,286 +17,281 @@ <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> - The <function>curl_setopt</function> function will set options - for a CURL session identified by the <parameter>ch</parameter> - parameter. The <parameter>option</parameter> parameter is the - option you want to set, and the <parameter>value</parameter> is - the value of the option given by the - <parameter>option</parameter>. + La función <function>curl_setopt</function> asigna valores para opciones + de una sesión CURL identificada por el parámetro <parameter>ch</parameter>. + El parámetro <parameter>option</parameter> es la opción a la que + se desea asignar el valor indicado en el parámetro <parameter>value</parameter>. </para> <para> - The <parameter>value</parameter> should be a long for the - following options (specified in the <parameter>option</parameter> - parameter): + <parameter>value</parameter> debe ser un entero para las siguientes + opciones (especificada en el parámetro <parameter>option</parameter>); <itemizedlist> <listitem> <simpara> - <parameter>CURLOPT_INFILESIZE</parameter>: When you are - uploading a file to a remote site, this option should be used - to tell PHP what the expected size of the infile will be. + <parameter>CURLOPT_INFILESIZE</parameter>: Cuando subimos un + archivo a un sitio remoto, esta opción debe ser usada para + decirle a PHP cuál será el tamaño del archivo + de entrada. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_VERBOSE</parameter>: Set this option to a - non-zero value if you want CURL to report everything that is - happening. + <parameter>CURLOPT_VERBOSE</parameter>: Asigne un valor distinto + de cero a esta opción si desea que CURL reporte todo lo que + acontece. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_HEADER</parameter>: Set this option to a - non-zero value if you want the header to be included in the - output. + <parameter>CURLOPT_HEADER</parameter>: Asigne un valor distinto + de cero a esta opción si desea que el encabezado sea incluido + en la salida. </simpara> </listitem> <listitem> <para> - <parameter>CURLOPT_NOPROGRESS</parameter>: Set this option to - a non-zero value if you don't want PHP to display a progress - meter for CURL transfers + <parameter>CURLOPT_NOPROGRESS</parameter>: Asigne un valor distinto + de cero a esta opción si no desea que PHP muestre una barra de progreso + para las transferencias de CURL. <note> <simpara> - PHP automatically sets this option to a non-zero parameter, - this should only be changed for debugging purposes. + PHP automáticamente asigna un valor distinto de cero a esta opción, + esto sólo debe ser cambiado para operaciones de depuración. </simpara> </note> </para> </listitem> <listitem> <simpara> - <parameter>CURLOPT_NOBODY</parameter>: Set this option to a - non-zero value if you don't want the body included with the - output. + <parameter>CURLOPT_NOBODY</parameter>: Asigne un valor distinto + de cero a esta opción si no desea que el cuerpo sea incluido en + la salida. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FAILONERROR</parameter>: Set this option to - a non-zero value if you want PHP to fail silently if the HTTP - code returned is greater than 300. The default behaviour is - to return the page normally, ignoring the code. + <parameter>CURLOPT_FAILONERROR</parameter>: Asigne un valor distinto + de cero a esta opción si desea que PHP falle silenciosamente si + el código HTTP devuelto es mayor que 300. El comportamiento por + defecto es devolver la página normalmente, ignorando el código. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_UPLOAD</parameter>: Set this option to a - non-zero value if you want PHP to prepare for an upload. + <parameter>CURLOPT_UPLOAD</parameter>: Asigne un valor distinto + de cero a esta opción si desea que PHP se prepare para subir un archivo. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_POST</parameter>: Set this option to a - non-zero value if you want PHP to do a regular HTTP POST. - This POST is a normal application/x-www-from-urlencoded kind, - most commonly used by HTML forms. + <parameter>CURLOPT_POST</parameter>: Asigne un valor distinto + de cero a esta opción si desea que PHP realize un pedido HTTP POST regular. + Este post normalmente es del tipo application/x-www-from-urlencoded, + normalmente utilizado por los formularios HTML. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FTPLISTONLY</parameter>: Set this option to - a non-zero value and PHP will just list the names of an FTP - directory. + <parameter>CURLOPT_FTPLISTONLY</parameter>: Asigne un valor distinto + de cero a esta opción y PHP simplemente listará los nombres de + un directorio FTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FTPAPPEND</parameter>: Set this option to a - non-zero value and PHP will append to the remote file instead - of overwriting it. + <parameter>CURLOPT_FTPAPPEND</parameter>: Asigne un valor distinto + de cero a esta opción y PHP escribirá al final del archivo remoto + en lugar de sobreescribirlo. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_NETRC</parameter>: Set this option to a - non-zero value and PHP will scan your ~./netrc file to find - your username and password for the remote site that you're - establishing a connection with. + <parameter>CURLOPT_NETRC</parameter>: Asigne un valor distinto + de cero a esta opción y PHP registrará su archivo + ~./netrc para buscar el nombre de usuario y la clave del sitio remoto + con el que está estableciendo una conexión. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FOLLOWLOCATION</parameter>: Set this option - to a non-zero value to follow any "Location: " header that the - server sends as a part of the HTTP header (note this is - recursive, PHP will follow as many "Location: " headers that - it is sent.) + <parameter>CURLOPT_FOLLOWLOCATION</parameter>: Asigne un valor distinto + de cero a esta opción para seguir algún encabezado del tipo "Location: " + que el servidor envíe como parte de los encabezados HTTP (esto es recursivo, + PHP seguirá tantos encabezados "Location: " como le sean enviados). </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_PUT</parameter>: Set this option a non-zero - value to HTTP PUT a file. The file to PUT must be set with - the CURLOPT_INFILE and CURLOPT_INFILESIZE. + <parameter>CURLOPT_PUT</parameter>: Asigne un valor distinto + de cero a esta opción para enviar un archivo utilizando el método + HTTP PUT. El archivo a enviar debe ser especificado con las opciones + CURLOPT_INFILE y CURLOPT_INFILESIZE. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_MUTE</parameter>: Set this option to a - non-zero value and PHP will be completely silent with regards - to the CURL functions. + <parameter>CURLOPT_MUTE</parameter>: Asigne un valor distinto + de cero a esta opción para que PHP no genere ningúna + salida para las funciones CURL. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_TIMEOUT</parameter>: Pass a long as a - parameter that contains the maximum time, in seconds, that - you'll allow the curl functions to take. + <parameter>CURLOPT_TIMEOUT</parameter>: Asigna un valor que contiene + el tiempo máximo de ejecución, en segundos, para las + funciones CURL. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_LOW_SPEED_LIMIT</parameter>: Pass a long as - a parameter that contains the transfer speed in bytes per - second that the transfer should be below during - CURLOPT_LOW_SPEED_TIME seconds for PHP to consider it too slow - and abort. + <parameter>CURLOPT_LOW_SPEED_LIMIT</parameter>: Asigna un valor + a la velocidad mínima de transferencia en bytes por segundo. + Si la transferencia se mantiene por debajo de ese valor durante la + cantidad de segundos indicados en la opción CURLOPT_LOW_SPEED_TIME, + será considerada demasiado lenta y abortada por PHP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_LOW_SPEED_TIME</parameter>: Pass a long as - a parameter that contains the time in seconds that the - transfer should be below the CURLOPT_LOW_SPEED_LIMIT for PHP - to consider it too slow and abort. + <parameter>CURLOPT_LOW_SPEED_TIME</parameter>: Asigna un valor a + la cantidad de segundos que la transferencia debe permanecer debajo de + la velocidad indicada en CURLOPT_LOW_SPEED_LIMIT para que PHP la + considere demasiado lenta y aborte. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_RESUME_FROM</parameter>: Pass a long as a - parameter that contains the offset, in bytes, that you want - the transfer to start from. + <parameter>CURLOPT_RESUME_FROM</parameter>: Asigna un valor al desplazamiento, + en bytes, desde el cual desea que comience la transferencia. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_SSLVERSION</parameter>: Pass a long as a - parameter that contains the SSL version (2 or 3) to use. By - default PHP will try and determine this by itself, although, - in some cases you must set this manually. + <parameter>CURLOPT_SSLVERSION</parameter>: Asigna un valor + que contiene la versión de SSL (2 o 3) a usar. Por + defecto PHP trata de detectar la versión automáticamente, + pero en algúnos casos este valor deberá ser fijado manualmente. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_TIMECONDITION</parameter>: Pass a long as a - parameter that defines how the CURLOPT_TIMEVALUE is treated. - You can set this parameter to TIMECOND_IFMODSINCE or - TIMECOND_ISUNMODSINCE. This is a HTTP-only feature. + <parameter>CURLOPT_TIMECONDITION</parameter>: Asigna un valor + que define cómo será tratado CURLOPT_TIMEVALUE. + Puede fijar este parametro a TIMECOND_IFMODSINCE o a TIMECOND_ISUNMODSINCE. + Esta característica es sólo para HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_TIMEVALUE</parameter>: Pass a long as a - parameter that is the time in seconds since January 1st, 1970. - The time will be used as specified by the CURLOPT_TIMEVALUE - option, or by default the TIMECOND_IFMODSINCE will be used. + <parameter>CURLOPT_TIMEVALUE</parameter>: Asigna un valor + en segundos al tiempo transcurrido desde el 1 de Enero de 1970. + El tiempo será utilizado como sea especificado por la + opción CURLOPT_TIMEVALUE, o en su defecto se utilizará TIMECOND_IFMODSINCE. </simpara> </listitem> </itemizedlist> </para> <para> - The <parameter>value</parameter> parameter should be a string for - the following values of the <parameter>option</parameter> - parameter: + El parámetro <parameter>value</parameter> debe ser una cadena para los + siguientes valores del parámetro <parameter>option</parameter>: <itemizedlist> <listitem> <simpara> - <parameter>CURLOPT_URL</parameter>: This is the URL that you - want PHP to fetch. You can also set this option when - initializing a session with the <function>curl_init</function> - function. + <parameter>CURLOPT_URL</parameter>: Esta es la URL que se desea traer. + Ud. también puede fijar esta opción cuando se inicializa una + sesión con la función <function>curl_init</function>. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_USERPWD</parameter>: Pass a string - formatted in the [username]:[password] manner, for PHP to use - for the connection. connection. + <parameter>CURLOPT_USERPWD</parameter>: Asigna un valor de + cadena del tipo [usuario]:[clave], para ser usado por PHP + en la conexión. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_PROXYUSERPWD</parameter>: Pass a string - formatted in the [username]:[password] format for connection - to the HTTP proxy. + <parameter>CURLOPT_PROXYUSERPWD</parameter>: Asigna un valor de + cadena del tipo [usuario]:[clave], para ser usado en la + conexión al servidor proxy HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_RANGE</parameter>: Pass the specified range - you want. It should be in the "X-Y" format, where X or Y may - be left out. The HTTP transfers also support several - intervals, seperated with commas as in X-Y,N-M. + <parameter>CURLOPT_RANGE</parameter>: Asigna un rango en el + formato "X-Y", donde X o Y pueden ser dejados de lado. Las + transferencias HTTP también soportan varios intervalos, + separados por comas como en X-Y,N-M. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_POSTFIELDS</parameter>: Pass a string - containing the full data to post in an HTTP "POST" operation. + <parameter>CURLOPT_POSTFIELDS</parameter>: Asigna una cadena que + contiene todos los datos a ser enviados en una operación + HTTP "POST". </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_REFERER</parameter>: Pass a string - containing the "referer" header to be used in an HTTP request. + <parameter>CURLOPT_REFERER</parameter>: Asigna una cadena que + contiene el encabezado "referer" para ser usado en un requerimiento + HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_USERAGENT</parameter>: Pass a string - containing the "user-agent" header to be used in an HTTP - request. + <parameter>CURLOPT_USERAGENT</parameter>: Asigna una cadena que + contiene el encabezado "user-agent" para ser usado en un requerimiento + HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_FTPPORT</parameter>: Pass a string - containing the which will be used to get the IP address to use - for the ftp "PORT" instruction. The POST instruction tells - the remote server to connect to our specified IP address. The - string may be a plain IP address, a hostname, a network - interface name (under UNIX), or just a plain '-' to use the - systems default IP address. + <parameter>CURLOPT_FTPPORT</parameter>: Pasa una cadena que + contiene el valor que será usado para obtener la dirección + IP a usar en la instrucción "PORT" de ftp. La instrucción "POST" + le indica al servidor remoto que se conecte a la direcci&on IP que le + especificamos. La cadena puede ser una dirección IP, un nombre de Host, + una interface de red (en UNIX), o simplemente un caracter '-' para usar + la dirección IP por defecto del sistema. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_COOKIE</parameter>: Pass a string - containing the content of the cookie to be set in the HTTP - header. + <parameter>CURLOPT_COOKIE</parameter>: Asigna una cadena con el + contenido de la cookie para ser incluida en el encabezado HTTP. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_SSLCERT</parameter>: Pass a string - containing the filename of PEM formatted certificate. + <parameter>CURLOPT_SSLCERT</parameter>: Asigna una cadena que + contiene el nombre del archivo que guarda el certificado con formato PEM. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_SSLCERTPASSWD</parameter>: Pass a string - containing the password required to use the CURLOPT_SSLCERT - certificate. + <parameter>CURLOPT_SSLCERTPASSWD</parameter>: Asigna una cadena que + contiene la clave requerida para usar el certificado indicado en la + opción CURLOPT_SSLCERT. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_COOKIEFILE</parameter>: Pass a string - containing the name of the file containing the cookiee data. - The cookie file can be in Netscape format, or just plain - HTTP-style headers dumped into a file. + <parameter>CURLOPT_COOKIEFILE</parameter>: Asigna una cadena que + contiene el nombre del archivo que guarda la información de + las cookies. Este archivo puede estar en formato Netscape, o simplemente + contener encabezados estilo HTTP. </simpara> </listitem> <listitem> <para> - <parameter>CURLOPT_CUSTOMREQUEST</parameter>: Pass a string to - be used instead of GET or HEAD when doing an HTTP request. - This is useful for doing DELETE or another, more obscure, HTTP - request. + <parameter>CURLOPT_CUSTOMREQUEST</parameter>: Asigna una cadena para + ser usada en lugar de GET o HEAD cuando se realiza un requerimiento HTTP. + Esto es útil para realizar DELETE ú otros requerimientos + HTTP más oscuros. <note> <simpara> - Don't do this without making sure your server supports the - command first. + No haga esto sin estar seguro de que su servidor soporta el comando especificado. </simpara> </note> </para> @@ -302,31 +299,31 @@ </itemizedlist> </para> <para> - The following options expect a file descriptor that is obtained - by using the <function>fopen</function> function: + Las siguientes opciones esperan un descriptor de archivo que es obtenido + por medio de la función <function>fopen</function>: <itemizedlist> <listitem> <simpara> - <parameter>CURLOPT_FILE</parameter>: The file where the output - of your transfer should be placed, the default is STDOUT. + <parameter>CURLOPT_FILE</parameter>: El archivo donde debe ser grabada la + salida generada por la transferencia. Por defecto es STDOUT. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_INFILE</parameter>: The file where the - input of your transfer comes from. + <parameter>CURLOPT_INFILE</parameter>: El archivo desde el que se leen los + datos para la transferencia. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_WRITEHEADER</parameter>: The file to write - the header part of the output into. + <parameter>CURLOPT_WRITEHEADER</parameter>: El archivo donde deben + ser grabados los encabezados de la salida de la transferencia. </simpara> </listitem> <listitem> <simpara> - <parameter>CURLOPT_STDERR</parameter>: The file to write - errors to instead of stderr. + <parameter>CURLOPT_STDERR</parameter>: El archivo donde deben + ser grabados los errores, en lugar de stderr. </simpara> </listitem> </itemizedlist>