搜索

首页  >  问答  >  正文

laravel framework 4 移动3G网络提交请求获取不到数据

我用laravel4作为app后端框架搭建的,但是使移动3G去请求数据获取不到数据,不知道什么问题?

我使用的网络是:CMWAP

这是获取到的请求

[2014-06-12 10:08:55] production.ERROR: Array
(
    [USER] => www-data
    [HOME] => /var/www
    [FCGI_ROLE] => RESPONDER
    [QUERY_STRING] => location&uid=F139A55300237103B79BCBA5DA711F07%7C732122010185368&ua=android_1.0_16777216_240_480_800&dev=LENOVO_Lenovo+A698t_4.0.3_15&client=coolwifi&os=a&pkg=com.zlianjie.coolwifi&network=12&login=2_1655072843
    [REQUEST_METHOD] => POST
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [CONTENT_LENGTH] => 144
    [SCRIPT_FILENAME] => /home/nginx/coolwifi/public/index.php
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /location?uid=F139A55300237103B79BCBA5DA711F07%7C732122010185368&ua=android_1.0_16777216_240_480_800&dev=LENOVO_Lenovo+A698t_4.0.3_15&client=coolwifi&os=a&pkg=com.zlianjie.coolwifi&network=12&login=2_1655072843
    [DOCUMENT_URI] => /index.php
    [DOCUMENT_ROOT] => /home/nginx/coolwifi/public
    [SERVER_PROTOCOL] => HTTP/1.1
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_SOFTWARE] => nginx/1.6.0
    [REMOTE_ADDR] => 211.136.28.135
    [REMOTE_PORT] => 10035
    [SERVER_ADDR] => 115.28.141.149
    [SERVER_PORT] => 80
    [SERVER_NAME] => api.coolwifi.cn
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => api.coolwifi.cn
    [HTTP_CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_CONTENT_LENGTH] => 144
    [HTTP_USER_AGENT] => Apache-HttpClient/UNAVAILABLE (java 1.4)
    [HTTP_X_FORWARDED_FOR] => 10.26.162.103
    [HTTP_X_UP_BEAR_TYPE] => GPRS/EDGE
    [HTTP_VIA] => WTP/1.1 BJBJ-PS-WAP3-GW26.bj3.monternet.com. (Nokia WAP Gateway 4.1 CD1/ECD13_F/4.1.06)
    [HTTP_X_SOURCE_ID] => 221.177.5.101
    [HTTP_X_UP_BEARER_TYPE] => GPRS
    [HTTP_X_NOKIA_GATEWAY_ID] => NWG/4.1/Build4.1.06
    [HTTP_X_ORIGINAL_URL] =>
    [HTTP_ACCEPT] => */*
    [HTTP_CONNECTION] => close
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1402538935.4358
    [REQUEST_TIME] => 1402538935
)
[2014-06-12 09:44:24] production.ERROR: exception 'Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException' in /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:210
Stack trace:
#0 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php(196): Illuminate\Routing\RouteCollection->methodNotAllowed(Array)
#1 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php(143): Illuminate\Routing\RouteCollection->getOtherMethodsRoute(Object(Illuminate\Http\Request), Array)
#2 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1021): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#3 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Routing/Router.php(989): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#4 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Routing/Router.php(968): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#5 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(738): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#6 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#7 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#8 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#9 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#10 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#11 /home/nginx/coolwifi/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#12 /home/nginx/coolwifi/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(606): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#13 /home/nginx/coolwifi/public/index.php(49): Illuminate\Foundation\Application->run()
#14 {main} [] []
phpcn_u1582phpcn_u15822757 天前732

全部回复(2)我来回复

  • PHPz

    PHPz2017-05-16 16:58:50

    SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException
    从上一段看你用的是 POST 方法,说明路由没写接受POST方法,可能写成了get。

    回复
    0
  • ringa_lee

    ringa_lee2017-05-16 16:58:50

    这个问题已经解决,这是因为cmwap会过滤掉像‘/route’这样的路径请求。

    回复
    0
  • 取消回复