#27202 [Opn->Csd]: document all curl constants
| From: | dave@php.net | Date: | Sat, 07 Aug 2004 00:06:22 +0000 |
| Subject: | #27202 [Opn->Csd]: document all curl constants | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969362803@lists.php.net to get a copy of this message | ||
ID: 27202
Updated by: dave@php.net
Reported By: leander2 at berwers dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-07-25 02:01:26] philip@php.net
Marking this as a documentation problem and rewriting the summary as
'document all curl constants'.
All curl constants should be documented (or perhaps mention that all
are not, at least until they are), here is a complete list:
http://lxr.php.net/source/php-src/ext/curl/interface.c#130
Wow, there sure are a lot of curl constants! :) List of constants go
here:
http://cvs.php.net/phpdoc/en/reference/curl/constants.xml
Docs (with useful information) goes here:
http://cvs.php.net/phpdoc/en/reference/curl/functions/curl-setopt.xml
------------------------------------------------------------------------
[2004-07-24 23:11:04] fido at list dot pl
Sorry to bother You, but could You point me to a place in manual where
this option is described??
I searched it a few times (with and without Ctrl+F) and couldn't find
it. Maybe this "feature" is not yet documented?
I've lost a few hours today fighting with this.. and gave up. I did it
by reinitiating CURL.
------------------------------------------------------------------------
[2004-02-10 11:14:43] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You need to set curl_setopt($ch, CURLOPT_HTTPGET, 1); for
the 2nd request, the
curl_setopt($ch, CURLOPT_URL,"http://second");
curl_setopt($ch, CURLOPT_POST, 0);
are not needed for request #2.
------------------------------------------------------------------------
[2004-02-10 04:46:46] leander2 at berwers dot com
Description:
------------
CURLOPT_POST = 0 and/or CURLOPT_POSTFIELDS = null does actually do a
POST while a GET is required
Reproduce code:
---------------
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://first");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $b);
$x = curl_exec($ch);
curl_setopt($ch, CURLOPT_URL,"http://second");
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, null);
curl_close($ch);
Expected result:
----------------
The first request should be a POST and the second request should be a
GET.
Actual result:
--------------
The first request is a POST (which is ok), but the second request is
also a POST.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27202&edit=1