source:
temp/test-xoops.ec-cube.net/html/test/uehara/request.php
@
1121
| Revision 1121, 341 bytes checked in by uehara, 20 years ago (diff) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | include '../../mainfile.php'; |
| 3 | |
| 4 | require(XOOPS_ROOT_PATH . "/pear/Request.php"); |
| 5 | |
| 6 | $objHttp = new HTTP_Request(XOOPS_ROOT_PATH); |
| 7 | |
| 8 | $objHttp->setMethod(HTTP_REQUEST_METHOD_POST); |
| 9 | $objHttp->addPostData("user", "bnote"); |
| 10 | |
| 11 | if (!PEAR::isError($objHttp->sendRequest())) { |
| 12 | $body = $objHttp->getResponseBody(); |
| 13 | } |
| 14 | |
| 15 | echo $body; |
| 16 | ?> |
Note: See TracBrowser
for help on using the repository browser.
