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

Revision 15377, 765 bytes checked in by naka, 17 years ago (diff)
Line 
1<?php
2require_once("../../require.php");
3require_once(DATA_PATH . "module/Request.php");
4
5$arrData = array(
6    'clientip' => '94183',
7    'cardnumber' => '4568802714347842',
8    'expyy' => '08',
9    'expmm' => '02',
10    'telno' => '0663467705',
11    'email' => 'naka@lockon.co.jp',
12    'sendid' => '1111',
13    'username' => 'naka',
14    'money' => '3600',
15    'sendpoint' => 'eccube',
16    'send' => 'mall',
17    'pubsec' => ''
18);
19
20$req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/order.cgi?orders');
21$req->setMethod(HTTP_REQUEST_METHOD_POST);
22$req->addPostDataArray($arrData);
23
24if (!PEAR::isError($req->sendRequest())) {
25    $response = $req->getResponseBody();
26    print('?');
27} else {
28    print('err');
29}
30$req->clearPostData();
31
32sfPrintR($response);
33?>
Note: See TracBrowser for help on using the repository browser.