projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
d8523b1
)
- update constant names in examples
author
Michael Wallner
<mike@php.net>
Thu, 8 Dec 2005 19:56:55 +0000
(19:56 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 8 Dec 2005 19:56:55 +0000
(19:56 +0000)
http_request_object.c
patch
|
blob
|
history
diff --git
a/http_request_object.c
b/http_request_object.c
index 925cd6d06b5bf84f3e3f3507c190fd04a8fa37bb..9bebb438b7f1e1cf8f8bf35f7c95f3f31e1e7948 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-1037,7
+1037,7
@@
PHP_METHOD(HttpRequest, getUrl)
* Set the request method.
*
* Expects an int as parameter specifying the request method to use.
* Set the request method.
*
* Expects an int as parameter specifying the request method to use.
- * In PHP 5.1+ HttpRequest::METH
, otherwise the HTTP_METH
constants can be used.
+ * In PHP 5.1+ HttpRequest::METH
_*, otherwise the HTTP_METH_*
constants can be used.
*
* Returns TRUE on success, or FALSE on failure.
*/
*
* Returns TRUE on success, or FALSE on failure.
*/
@@
-1959,7
+1959,7
@@
PHP_METHOD(HttpRequest, clearHistory)
* GET example:
* <pre>
* <?php
* GET example:
* <pre>
* <?php
- * $r = new HttpRequest('http://example.com/feed.rss', H
TTP
_GET);
+ * $r = new HttpRequest('http://example.com/feed.rss', H
ttpRequest::METH
_GET);
* $r->setOptions(array('lastmodified' => filemtime('local.rss')));
* $r->addQueryData(array('category' => 3));
* try {
* $r->setOptions(array('lastmodified' => filemtime('local.rss')));
* $r->addQueryData(array('category' => 3));
* try {
@@
-1976,7
+1976,7
@@
PHP_METHOD(HttpRequest, clearHistory)
* POST example:
* <pre>
* <?php
* POST example:
* <pre>
* <?php
- * $r = new HttpRequest('http://example.com/form.php', H
TTP
_POST);
+ * $r = new HttpRequest('http://example.com/form.php', H
ttpRequest::METH
_POST);
* $r->setOptions(array('cookies' => array('lang' => 'de')));
* $r->addPostFields(array('user' => 'mike', 'pass' => 's3c|r3t'));
* $r->addPostFile('image', 'profile.jpg', 'image/jpeg');
* $r->setOptions(array('cookies' => array('lang' => 'de')));
* $r->addPostFields(array('user' => 'mike', 'pass' => 's3c|r3t'));
* $r->addPostFile('image', 'profile.jpg', 'image/jpeg');