Closed eLvErDe closed 5 years ago
@eLvErDe I believe we just need to set the CURLOPT_UNRESTRICTED_AUTH
option which is the libcurl
opt for the command line argument --location-trusted
. Could you try the patch in PR #633 and see if that fixes the issue as well?
Because your patch enabling pycurl to follow redirect fails with 401, pycurl does not send back credentials when redirecting...
I tried to use another approach: if status == 302, read response headers, extract URL and re-do the query. I'm not sure if it's working, it looks so but I'm not sure yet.