laravel framework 4 mobile 3G network submission request cannot obtain data
phpcn_u1582
phpcn_u1582 2017-05-16 16:56:50
0
2
748

I used laravel4 as the back-end framework of the app, but I cannot get the data when I use mobile 3G to request data. I don’t know what the problem is?

The network I use is: CMWAP

This is the request obtained

[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_u1582
phpcn_u1582

reply all(2)
PHPzhong

SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException
From the previous paragraph, it seems that you are using the POST method, which means that the route is not written to accept the POST method, and it may be written as get.

左手右手慢动作

This problem has been solved because cmwap will filter out path requests like ‘/route’.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template