@ -110,6 +110,9 @@
< enum name = " dnstimeout " >
< enum name = " dnstimeout " >
< para > Number of seconds to wait for DNS to be resolved < / para >
< para > Number of seconds to wait for DNS to be resolved < / para >
< / enum >
< / enum >
< enum name = " followlocation " >
< para > Whether or not to follow HTTP 3 xx redirects ( boolean ) < / para >
< / enum >
< enum name = " ftptext " >
< enum name = " ftptext " >
< para > For FTP URIs , force a text transfer ( boolean ) < / para >
< para > For FTP URIs , force a text transfer ( boolean ) < / para >
< / enum >
< / enum >
@ -131,7 +134,9 @@
server response < / para >
server response < / para >
< / enum >
< / enum >
< enum name = " maxredirs " >
< enum name = " maxredirs " >
< para > Maximum number of redirects to follow < / para >
< para > Maximum number of redirects to follow . The default is - 1 ,
which allows for unlimited redirects . This only makes sense when
followlocation is also set . < / para >
< / enum >
< / enum >
< enum name = " proxy " >
< enum name = " proxy " >
< para > Hostname or IP address to use as a proxy server < / para >
< para > Hostname or IP address to use as a proxy server < / para >
@ -269,6 +274,9 @@ static int parse_curlopt_key(const char *name, CURLoption *key, enum optiontype
} else if ( ! strcasecmp ( name , " proxyuserpwd " ) ) {
} else if ( ! strcasecmp ( name , " proxyuserpwd " ) ) {
* key = CURLOPT_PROXYUSERPWD ;
* key = CURLOPT_PROXYUSERPWD ;
* ot = OT_STRING ;
* ot = OT_STRING ;
} else if ( ! strcasecmp ( name , " followlocation " ) ) {
* key = CURLOPT_FOLLOWLOCATION ;
* ot = OT_BOOLEAN ;
} else if ( ! strcasecmp ( name , " maxredirs " ) ) {
} else if ( ! strcasecmp ( name , " maxredirs " ) ) {
* key = CURLOPT_MAXREDIRS ;
* key = CURLOPT_MAXREDIRS ;
* ot = OT_INTEGER ;
* ot = OT_INTEGER ;
@ -858,6 +866,7 @@ static struct ast_custom_function acf_curlopt = {
" cookie - Send cookie with request [none] \n "
" cookie - Send cookie with request [none] \n "
" conntimeout - Number of seconds to wait for connection \n "
" conntimeout - Number of seconds to wait for connection \n "
" dnstimeout - Number of seconds to wait for DNS response \n "
" dnstimeout - Number of seconds to wait for DNS response \n "
" followlocation - Follow HTTP 3xx redirects (boolean) \n "
" ftptext - For FTP, force a text transfer (boolean) \n "
" ftptext - For FTP, force a text transfer (boolean) \n "
" ftptimeout - For FTP, the server response timeout \n "
" ftptimeout - For FTP, the server response timeout \n "
" header - Retrieve header information (boolean) \n "
" header - Retrieve header information (boolean) \n "