Revision 15532,
690 bytes
checked in by nanasess, 17 years ago
(diff) |
svn:mime-type 修正
|
-
Property svn:keywords set to
Id
-
Property svn:mime-type set to
text/x-httpd-php; charset=UTF-8
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | require_once("../../require.php"); |
---|
4 | require_once(DATA_PATH . "module/Request.php"); |
---|
5 | |
---|
6 | //$order_url = "http://test.ec-cube.net/ec-cube/load_module.php?module_id=4"; |
---|
7 | $order_url = "http://test.ec-cube.net/ec-cube/test/kakinaka/epsilon_check.php"; |
---|
8 | |
---|
9 | $arrData = array( |
---|
10 | 'order_number' => '1', |
---|
11 | 'trans_code' => '1', |
---|
12 | 'paid' => 1 |
---|
13 | ); |
---|
14 | |
---|
15 | $req = new HTTP_Request($order_url); |
---|
16 | $req->setMethod(HTTP_REQUEST_METHOD_POST); |
---|
17 | |
---|
18 | $arrSendData = array(); |
---|
19 | $req->addPostDataArray($arrData); |
---|
20 | if (!PEAR::isError($req->sendRequest())) { |
---|
21 | echo("送信完了"); |
---|
22 | } else { |
---|
23 | echo("送信失敗"); |
---|
24 | } |
---|
25 | |
---|
26 | sfprintr($req->getResponseBody()); |
---|
27 | sfprintr($req->getResponseHeader()); |
---|
28 | |
---|
29 | |
---|
30 | $body = "Content-Type: text/plain |
---|
31 | |
---|
32 | 1"; |
---|
33 | |
---|
34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.