Added optional parameter to Curl::currentUrl() to not return query string