Laravel framework 4 permintaan penyerahan rangkaian 3G mudah alih tidak boleh mendapatkan data
phpcn_u1582
phpcn_u1582 2017-05-16 16:56:50
0
2
712

Saya menggunakan laravel4 sebagai rangka kerja bahagian belakang apl, tetapi apabila saya menggunakan 3G mudah alih untuk meminta data, saya tidak tahu apa masalahnya?

Rangkaian yang saya gunakan ialah: CMWAP

Ini adalah permintaan yang diperolehi

[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

membalas semua(2)
PHPzhong

Kaedah

SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException
从上一段看你用的是 POST, menunjukkan bahawa laluan tidak ditulis untuk menerima kaedah POST, ia mungkin ditulis sebagai get.

左手右手慢动作

Masalah ini telah diselesaikan kerana cmwap akan menapis permintaan laluan seperti '/route'.

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!