12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- printf("Content-Type: text/html; charset=UTF-8\r\n\r\n");
- $reqs = array();
- //$reqs['index'] = 'http://localhost:8080/';
- //$reqs['index'] ='http://localhost:8080/mobile/index.php?act=index&op=index';
- //$reqs['login_register'] ='http://localhost:8080/mobile/index.php?act=login&op=register&username=stanley&password=55668899&password_confirm=55668899';
- //$reqs['login_genanonymous'] ='http://localhost:.
- //mobile/index.php?act=login&op=genuser&info=helloworld&type=1&client=android';
- //$reqs['login_genwx'] ='http://localhost:8080/mobile/index.php?act=login&op=genuser&type=2&openid=123456789000&client=android';
- //$reqs['login_anonymous_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&openid=561f708422817&type=1&client=android';
- //$reqs['login_wx_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&openid=123456789000&type=2&client=android';
- //$reqs['login_mobile_login'] ='http://localhost:8080/mobile/index.php?act=login&op=login&mobile=18022196345&password=55668899&type=0&client=android';
- //$reqs['login_wx_getinfo'] ='http://localhost:8080/mobile/index.php?act=login&op=getinfo&token=08a6a71c051bc5be33f85141f3ca6b52';
- //$reqs['login_wx_getcode'] ='http://localhost:8080/mobile/index.php?act=login&op=getcode&token=fe22e0bc1c2e776b3dc22374fc96b0af&mobile=13911129867';
- //$reqs['login_wx_checkcode'] ='http://localhost:8080/mobile/index.php?act=login&op=checkcode&token=08a6a71c051bc5be33f85141f3ca6b52&code=0369';
- //$reqs['login_wx_bind'] ='http://localhost:8080/mobile/index.php?act=login&op=bind&token=fe22e0bc1c2e776b3dc22374fc96b0af&code=2578&password=55668899&type=mobile';
- $reqs['login_wx_bind'] = 'http://localhost/mobile/index.php?act=goods&op=goods_list&page=10&curpage=1';
- foreach ($reqs as $key => $uri)
- {
- define('StartTime', microtime(true));
- define('TIMESTAMP', time());
-
- $lreq = new local_request($uri);
- init_localreq($lreq);
-
- $file = $lreq->script_file();
- if(is_file($file)) {
- include $file;
- } else {
- echo 'no such file';
- }
- }
|