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

Revision 15405, 810 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
6$arrData = array(
7    'clientip' => '94181',
8    'cardnumber' => '4568802714347842',
9    'expyy' => '08',
10    'expmm' => '02',
11    'telno' => '0663467705',
12    'email' => 'naka@lockon.co.jp',
13    'sendid' => '1111',
14    'username' => 'naka',
15    'money' => '3600',
16    'sendpoint' => 'eccube',
17    'send' => 'mall',
18    'pubsec' => ''
19);
20
21sfPrintR($arrData);
22
23$req = new HTTP_Request('https://linkpt.cardservice.co.jp/cgi-bin/secure.cgi');
24$req->setMethod(HTTP_REQUEST_METHOD_POST);
25$req->addPostDataArray($arrData);
26
27if (!PEAR::isError($req->sendRequest())) {
28    $response = $req->getResponseBody();
29    $response = mb_convert_encoding($response, "EUC-JP", "Shift-JIS");
30}
31$req->clearPostData();
32
33sfPrintR($response);
34?>
Note: See TracBrowser for help on using the repository browser.