svn: /phpdoc/zh/trunk/reference/curl/functions/ curl-reset.xml
| From: | Dai Jie | Date: | Fri, 24 Jun 2016 08:43:16 +0000 |
| Subject: | svn: /phpdoc/zh/trunk/reference/curl/functions/ curl-reset.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-4679@lists.php.net to get a copy of this message | ||
daijie Fri, 24 Jun 2016 08:43:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339473
Log:
删除多余的 tag
Changed paths:
A phpdoc/zh/trunk/reference/curl/functions/curl-reset.xml
Added: phpdoc/zh/trunk/reference/curl/functions/curl-reset.xml
===================================================================
--- phpdoc/zh/trunk/reference/curl/functions/curl-reset.xml (rev 0)
+++ phpdoc/zh/trunk/reference/curl/functions/curl-reset.xml 2016-06-24 08:43:16 UTC (rev 339473)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 330507 Maintainer: 胡搞 Status: ready -->
+
+<refentry xml:id="function.curl-reset" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>curl_reset</refname>
+ <refpurpose>重置一个 libcurl 会话句柄的所有的选项</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>void</type><methodname>curl_reset</methodname>
+
<methodparam><type>resource</type><parameter>ch</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ 该函数将给定的 cURL 句柄所有选项重新设置为默认值。
+ </para>
+
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <variablelist>
+ &curl.ch.description;
+ </variablelist>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.void;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>curl_reset</function> 示例</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// 创建一个url 句柄
+$ch = curl_init();
+
+// 设置 CURLOPT_USERAGENT 选项
+curl_setopt($ch, CURLOPT_USERAGENT, "My test user-agent");
+
+// 重置所有的预先设置的选项
+curl_reset($ch);
+
+// 发送 HTTP 请求
+curl_setopt($ch, CURLOPT_URL, 'http://example.com/');
+curl_exec($ch); // 预先设置的 user-agent 不会被发送,它已经被 curl_reset
重置掉了
+
+// 关闭句柄
+curl_close($ch);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <note>
+ <para>
+ <function>curl_reset</function> also resets the URL given as the
<function>curl_init</function> parameter.
+ </para>
+ </note>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>curl_setopt</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
Property changes on: phpdoc/zh/trunk/reference/curl/functions/curl-reset.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL