Hi, I'm using the plugin to my application to log on directly to the Mibew but is returning the NEXT information:
Array ( [url] => https://localhost/ipchat/index.php/wurrd/auth/requestaccess [content_type] => text/html; charset=iso-8859-1 [http_code] => 404 [header_size] => 180 [request_size] => 336 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 0.040037 [namelookup_time] => 7.6E-5 [connect_time] => 0.000685 [pretransfer_time] => 0.039059 [size_upload] => 0 [size_download] => 322 [speed_download] => 8042 [speed_upload] => 0 [download_content_length] => 322 [upload_content_length] => 0 [starttransfer_time] => 0.039919 [redirect_time] => 0 )
This is the string sent:
{"username":"admin","password":"1234567","clientid":"aabbbcccddeee","deviceuuid":"aaa-uuu-ii","type":"phone","devicename":"iPhone 5s","platform":"iOS","os":"IOS","osversion":"iPhone OS 8"}
if I try to get to directly enter
https://localhost/ipchat/index.php/wurrd/auth/requestaccess
response: Method Not Allowed
which tells me that the page if it exists and answer
I appreciate the help you can give me in order to implement the plug in one of my tests
his is the script I use to call the curl in php
//*******************************************************************************************
error_reporting(E_ALL);
ini_set('display_errors','On');
$error = '';
$URL = "https://localhost/ipchat/index.php/wurrd/auth/requestaccess";
$data = json_encode(array('username' => "admin",
'password' => '1234567',
'clientid' => 'aabbbcccddeee',
'deviceuuid' => 'aaa-uuu-ii',
'type' => 'phone',
'devicename' => 'iPhone 5s',
'platform' => 'iOS',
'os' => 'IOS',
'osversion' => 'iPhone OS 8'
));
//echo "<pre>".print_r($data)."</pre>";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json', 'Content-Length: ' . strlen($data)));
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
//print_r(curl_getinfo($ch));
$error = curl_error($ch);
curl_close($ch);
//echo "<pre>$response</pre>";
if ($error != '') echo 'Error -> '.$error.'<BR>';
//*******************************************************************************************
best regard.
Hi, I'm using the plugin to my application to log on directly to the Mibew but is returning the NEXT information:
Array ( [url] => https://localhost/ipchat/index.php/wurrd/auth/requestaccess [content_type] => text/html; charset=iso-8859-1 [http_code] => 404 [header_size] => 180 [request_size] => 336 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 0.040037 [namelookup_time] => 7.6E-5 [connect_time] => 0.000685 [pretransfer_time] => 0.039059 [size_upload] => 0 [size_download] => 322 [speed_download] => 8042 [speed_upload] => 0 [download_content_length] => 322 [upload_content_length] => 0 [starttransfer_time] => 0.039919 [redirect_time] => 0 )
This is the string sent:
{"username":"admin","password":"1234567","clientid":"aabbbcccddeee","deviceuuid":"aaa-uuu-ii","type":"phone","devicename":"iPhone 5s","platform":"iOS","os":"IOS","osversion":"iPhone OS 8"}
if I try to get to directly enter
https://localhost/ipchat/index.php/wurrd/auth/requestaccess
response: Method Not Allowed
which tells me that the page if it exists and answer
I appreciate the help you can give me in order to implement the plug in one of my tests
his is the script I use to call the curl in php
//*******************************************************************************************
error_reporting(E_ALL);
ini_set('display_errors','On');
$error = '';
$URL = "https://localhost/ipchat/index.php/wurrd/auth/requestaccess";
$data = json_encode(array('username' => "admin",
'password' => '1234567',
'clientid' => 'aabbbcccddeee',
'deviceuuid' => 'aaa-uuu-ii',
'type' => 'phone',
'devicename' => 'iPhone 5s',
'platform' => 'iOS',
'os' => 'IOS',
'osversion' => 'iPhone OS 8'
));
//*******************************************************************************************
best regard.