Use --max-redirs 9999 instead of -1 as workaround.
Did a little research and found commit f121575 to be a candidate for cause.
case CURLOPT_MAXREDIRS:
/* * The maximum amount of hops you allow curl to follow Location: * headers. This should mostly be used to detect never-ending loops.*/
arg = va_arg(param, long);
if(arg < 0)
return CURLE_BAD_FUNCTION_ARGUMENT;
data->set.maxredirs = arg;
break;
The text was updated successfully, but these errors were encountered:
I did this
curl --max-redirs -1 http://dummy.restapiexample.com/api/v1/employees
I expected the following
Get a JSON with HTTP status 200
instead got the following
curl/libcurl version
operating system
openSUSE Tumbleweed
Notes
Use
--max-redirs 9999
instead of-1
as workaround.Did a little research and found commit f121575 to be a candidate for cause.
The text was updated successfully, but these errors were encountered: