reference/curl/functions/curl-exec.xml
b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>mixed</type><methodname>curl_exec</methodname>
13
-
<methodparam><type>resource</type><parameter>ch</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>bool</type></type><methodname>curl_exec</methodname>
13
+
<methodparam><type>CurlHandle</type><parameter>handle</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Execute the given cURL session.
...
...
@@ -37,6 +37,31 @@
37
37
option is <link linkend="function.curl-setopt">set</link>, it will return
38
38
the result on success, &false; on failure.
39
39
</para>
40
+
&return.falseproblem;
41
+
<note>
42
+
<para>
43
+
Note that response status codes which indicate errors (such as <literal>404
44
+
Not found</literal>) are not regarded as failure.
45
+
<function>curl_getinfo</function> can be used to check for these.
46
+
</para>
47
+
</note>
48
+
</refsect1>
49
+
50
+
<refsect1 role="changelog">
51
+
&reftitle.changelog;
52
+
<informaltable>
53
+
<tgroup cols="2">
54
+
<thead>
55
+
<row>
56
+
<entry>&Version;</entry>
57
+
<entry>&Description;</entry>
58
+
</row>
59
+
</thead>
60
+
<tbody>
61
+
&curl.changelog.handle-param;
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
40
65
</refsect1>
41
66

42
67
<refsect1 role="examples">
...
...
@@ -76,7 +101,6 @@ curl_close($ch);
76
101
</refsect1>
77
102

78
103
</refentry>
79
-

80
104
<!-- Keep this comment at the end of the file
81
105
Local variables:
82
106
mode: sgml
83
107