source: branches/feature-module-combz/html/test/naka/new.php @ 16562

Revision 16562, 780 bytes checked in by naka, 16 years ago (diff)

コンビーズテスト

Line 
1<?php
2require_once("../../require.php");
3require_once(DATA_PATH . "module/Request.php");
4
5switch($_GET['mode']) {
6case 'combz_reserve':
7    print("combz_reserve");
8    sfCombzReserve();
9    break;
10case 'combz_regist':
11    print("combz_regist"); 
12    break;
13default:
14    print("default");
15    break;
16}
17
18function sfCombzReserve() {
19    //http://menu2.combzmail.jp/ex_eccube.cgi
20    $arrPost = array(
21        'test' => 'test'
22    );
23   
24    $req = new HTTP_Request('http://menu2.combzmail.jp/ex_eccube.cgi');
25    $req->setMethod(HTTP_REQUEST_METHOD_POST);
26    $req->addPostDataArray($arrPost);
27    $ret = $req->sendRequest();
28       
29    if (!PEAR::isError($ret)) {
30        $response = $req->getResponseBody();
31        print($response);       
32    } else {
33        print($ret->getMessage());
34    }
35    $req->clearPostData();
36}
37
38?>
Note: See TracBrowser for help on using the repository browser.