SEOTestSiteTreeController::getPageData
Curl the passed url.
This is still run on the same domain as where your admin domain is located however curl can deal with redirects much better then ajax therefore giving a more accurate result. Also it prepares all the important data into an array object which is then encoded and sent to JS for parsing Object Contents obj['header'] = Headers that we got back from the curl obj['body'] = HTML of the page obj['phrases'] = A list of sentences as extracting from the DOM obj['field_data'] = A result from preg_match with all the html fields visible on the page
Signature
public function getPageData(SS_HTTPRequest
$request )
Parameters
$request
— SS_HTTPRequest
Returns
- String