diff --git a/lib/curl.php b/lib/curl.php index 9d9497f..9880e7c 100644 --- a/lib/curl.php +++ b/lib/curl.php @@ -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 ); + } } \ No newline at end of file