diff --git a/adapters/vnfm_generic/polld/vnfm_generic_poll.php b/adapters/vnfm_generic/polld/vnfm_generic_poll.php index 09a0a83c..521823ba 100644 --- a/adapters/vnfm_generic/polld/vnfm_generic_poll.php +++ b/adapters/vnfm_generic/polld/vnfm_generic_poll.php @@ -81,12 +81,16 @@ function get_token($SIGNIN_REQ_PATH, $data, $auth_mode) curl_setopt($ch, CURLOPT_POSTFIELDS, $http_data); curl_setopt($ch, CURLOPT_TIMEOUT, 10); if($auth_mode == 'keystone'){ + curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); } $ret = curl_exec($ch); - debug_dump($ret, "get_token() curl return\n"); + $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); + $header = substr($response, 0, $header_size); + + debug_dump($header, "get_token() header: \n"); // sms_log_info(basename(__FILE__, '.php') . " polling $url with get_token() ret: $ret"); if (curl_errno($ch)) {