source: temp/trunk/html/test/naka/shopcgi.php @ 7743

Revision 7743, 1.0 KB checked in by naka, 20 years ago (diff)

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2
3require_once("../../require.php");
4require_once(DATA_PATH . "module/Request.php");
5
6/*
7
8from index2.html
9
10Array
11(
12    [TenantNo] => 11111111
13    [OrderId] => 2006-11-08-11-39-53-966
14    [JobCd] => CHECK
15    [Amount] =>
16    [Tax] =>
17    [Currency] =>
18    [Memo] =>
19)
20
21*/
22
23/*
24
25¥»¥ó¥¿¤Ø¤ÎÁ÷¿®¥Ç¡¼¥¿
26
27OrderId=>2006-11-08-12-43-21-935
28TdTenantName=>
29TdFlag=>
30ShopId=>test
31Amount=>0
32ShopPass=>test
33Currency=>
34Tax=>0
35JobCd=>CHECK
36TenantNo=>TenantNo
37
38*/
39
40$order_url = "http://mod-i.ccsware.net/ohayou/EntryTran.php";
41
42$arrData = array(
43    'OrderId' => '2006-11-08-12-55-26-190',
44    'TdTenantName' => '',
45    'TdFlag' => '',
46    'ShopId' => 'test',
47    'Amount' => '100',
48    'ShopPass' => 'test',
49    'Currency' => 'JPN',
50    'Tax' => '5',
51    'JobCd' => 'CHECK',
52    'TenantNo' => 'TenantNo',
53);
54
55$req = new HTTP_Request($order_url);
56$req->setMethod(HTTP_REQUEST_METHOD_POST);
57       
58$arrSendData = array();
59$req->addPostDataArray($arrData);
60
61if (!PEAR::isError($req->sendRequest())) {
62    $response = $req->getResponseBody();
63} else {
64    $response = "";
65}
66$req->clearPostData();
67
68print($response);
69
70
71?>
Note: See TracBrowser for help on using the repository browser.