source: branches/feature-module-zeus/html/test/naka/zeus.php @ 15376

Revision 15376, 455 bytes checked in by naka, 13 years ago (diff)
Line 
1<?php
2require_once("../../require.php");
3require_once(DATA_PATH . "module/Request.php");
4
5$arrData = array(
6    1 => 'test'
7);
8
9$req = new HTTP_Request('https://www.ec-cube.net/');
10$req->setMethod(HTTP_REQUEST_METHOD_POST);
11$req->addPostDataArray($arrData);
12
13if (!PEAR::isError($req->sendRequest())) {
14    $response = $req->getResponseBody();
15    print('?');
16} else {
17    print('err');
18}
19$req->clearPostData();
20
21sfPrintR($response);
22
23?>
Note: See TracBrowser for help on using the repository browser.