oc200 external radius
Hello everyone,
I have successfully integrated an external captive portal with Omada Cloud.
Now, I wanted to do the same integration on an OC200, but the first request I make from a device connected to the WiFi generated by AP+OC200 returns "network unreachable."
The same request made via Postman returns a result. How is this possible?
The request is as follows:
$Url =
192.168.75.238/
openapi/
authorize/l
ogin?
client_id=XXXXXXXX&omadac_id=XXXXXXXXXXXX
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $Url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{"username":"USER","password":"PWD"}',
CURLOPT_HTTPHEADER => array(
'content-type: application/json',
'Cookie: TPOMADA_SESSIONID=iam-c0ae7dfb535f4c1cbb7e9fad3bd2f507'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Thanks.
Mirco
Bye