source: temp/test-xoops.ec-cube.net/html/test/uehara/request.php @ 1121

Revision 1121, 341 bytes checked in by uehara, 15 years ago (diff)
Line 
1<?php
2include '../../mainfile.php';
3
4require(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
11if (!PEAR::isError($objHttp->sendRequest())) {
12    $body = $objHttp->getResponseBody();
13}
14
15echo $body;
16?>
Note: See TracBrowser for help on using the repository browser.