The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 11-23-2019, 07:39 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REST API - how to override connectivity
08-13-2012, 09:21 PM (This post was last modified: 08-13-2012 09:23 PM by sabreB6.)
Post: #1
REST API - how to override connectivity
Hey!
I'm interested in overriding connectivity settings in REST API, I know that I can set bwDown, bwUp params but it would be nice to override them with single param.

I was looking at runtest.php and found that location param may hold optional settings like 'location:browser.connectivity'

Quote:
// Extract the location, browser and connectivity.
// location:browser.connectivity
if( preg_match('/([^\.:]+)[:]*(.*)[\.]+([^\.]*)/i', trim($req_location), $matches) ||
preg_match('/([^\.:]+)[:]*(.*)/i', trim($req_location), $matches))
{
$test['location'] = trim($matches[1]);
if (strlen(trim($matches[2])))
$test['browser'] = trim($matches[2]);
if (strlen(trim($matches[3])))
$test['connectivity'] = trim($matches[3]);
} else {
$test['location'] = trim($req_location);
}

For connectivity I should use values from conectivity.ini however I'm not sure about browser. I was submitting blank browser with 'Cable' connectivity and it works fine for IE but breaks for wptdriver - the test is submitted but never complete succesfully.

Is it supported or I should rather stick to bwDown, bwUp?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
REST API - how to override connectivity - sabreB6 - 08-13-2012 09:21 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)