moukbel
4 months ago

POST not found in request

Posted 4 months ago by moukbel

hi

in my controller, if I return the $request


namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Schema;

class IPNController extends Controller
{
    public function ipn(Request $request){

    return $request;
}

}

i got all the request info


POST /IPNWM HTTP/1.1 Accept: */* 
Accept-Language: ru-RU 
Content-Length: 516 
Content-Type: application/x-www-form-urlencoded 
Host: xxx.com 
User-Agent: Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5) 
X-Forwarded-Proto: https 
X-Https: on 

LMI_MODE=0
LMI_PAYMENT_AMOUNT=1
LMI_PAYMENT_NO=26
...

but when i trying to access one of them

 if(!isset($_POST['LMI_MODE'])){
            die('not found');
            
        }

i'm alwase get not found a message

Please sign in or create an account to participate in this conversation.