You are here

function tmgmt_google_test_http_request in TMGMT Translator Google 7

Callback to test if we can do http request from and to the same server.

1 string reference to 'tmgmt_google_test_http_request'
tmgmt_google_test_menu in tests/tmgmt_google_test.module
Implements hook_menu().

File

tests/tmgmt_google_test.module, line 139
Main bootstrap file of the tmgmt_google_test module.

Code

function tmgmt_google_test_http_request() {
  $url = url('tmgmt_google_test/languages', array(
    'absolute' => TRUE,
  ));
  $response = drupal_http_request($url);
  return $url . '<pre>' . print_r($response, TRUE) . '</pre>';
}