Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,15 @@ protected function set_request_options($url, $vars) {
curl_setopt($this->request, constant('CURLOPT_'.str_replace('CURLOPT_', '', strtoupper($option))), $value);
}
}

/**
* Returns an associative array of curl options
* currently configured.
*
* @return array Associative array of curl options
*/
function get_request_options() {
return curl_getinfo( $this->request );
}

}