Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

cant get request pages #2

@franrtorres77

Description

@franrtorres77

HI
II'm implementing your code but I can't make it work properly, I can log into the device, but I can't get the data from the requested page. Here you have a screen capture about what I'm getting:

imagen

Also my code is like this:

`
require('airos_function.php');

$ip = "https://192.168.1.2";
$port = ":443/";
$ipAntena = $ip.$port;
$inputarray['username'] = 'ubnt';
$inputarray['password'] = 'ubnt';
$inputarray['cookiefile'] = '/cookies/'.$ip.'.txt';

$inputarray['requestpage'] = '/brmacs.cgi?brmacs=y';
$inputarray['expectedpage'] = $ipAntena.'brmacs.cgi?brmacs=y';
$inputarray['loginurl'] = $ipAntena.'login.cgi';

$extrapages[0]['page-name'] = 'status';
$extrapages[0]['page-url'] = $ipAntena.'status.cgi?';
$extrapages[1]['page-name'] = 'stations';
$extrapages[1]['page-url'] = $ipAntena.'sta.cgi?';

$reply = get_pages_from_ubnt_airos_device($inputarray, $extrapages);
print_r($reply);`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions