[asterisk-bugs] [Asterisk 0018902]: CURLOPT() needs a "followlocation" parameter / "maxredirs" doesn't do anything
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Mar 3 14:42:42 CST 2011
The following issue has been UPDATED.
======================================================================
https://issues.asterisk.org/view.php?id=18902
======================================================================
Reported By: candrews
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18902
Category: Functions/func_curl
Reproducibility: always
Severity: feature
Priority: normal
Status: acknowledged
Asterisk Version: 1.8.3
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-03-01 13:15 CST
Last Modified: 2011-03-03 14:42 CST
======================================================================
Summary: CURLOPT() needs a "followlocation" parameter /
"maxredirs" doesn't do anything
Description:
I noticed that the CURL function will not follow redirects. According to
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTFOLLOWLOCATION
you need to set the CURLOPT_FOLLOWLOCATION in order for CURL to follow
redirects, and that is not set according to the source code:
http://svnview.digium.com/svn/asterisk/trunk/funcs/func_curl.c?view=markup
This is especially interesting seeing as how there is a "maxredirs"
CURLOPT parameter. According to the CURL documentation at
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTMAXREDIR :
"This option only makes sense if the CURLOPT_FOLLOWLOCATION is used at the
same time."
I suggest that a new CURLOPT parameter "followlocation" be added to add
the redirect following feature and fix the currently broken "maxredirs"
option.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-03-03 14:42 lmadsen Description Updated
======================================================================
More information about the asterisk-bugs
mailing list