-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CURLOPT_FOLLOWLOCATION with CURLOPT_CURLU: infinitely following locations #5709
Comments
I can reproduce this. It probably has something to do with parseurlandfillconn which will set the url handle to the user setting (stored in data->set.uh), even on redirect. Lines 1840 to 1848 in 5a1fc8d
data->state.uh where the redirect URL handle was stored is freed by up_free and then overwritten. That seems right though but I think something is missing like a data->change.uh to complement data->change.url so uh overwrites data->change.url? |
Prior to this change if the user set a URL handle (CURLOPT_CURLU) it was incorrectly used for the location follow, resulting in infinite requests to the original location. Reported-by: sspiri@users.noreply.github.com Fixes curl#5709 Closes #xxxx
Try #5713 |
Prior to this change if the user set a URL handle (CURLOPT_CURLU) it was incorrectly used for the location follow, resulting in infinite requests to the original location. Reported-by: sspiri@users.noreply.github.com Fixes curl#5709 Closes #xxxx
I did this
I expected the following
I expected this would follow to the desired location. Instead
curl_easy_perform()
is blocking forever, infinitely following the location. Just happens when I set the url withCURLOPT_CURLU
,CURLOPT_URL
is working as expected. Same error for multiple hosts.curl/libcurl version
operating system
Linux 5.7.8-arch1-1
The text was updated successfully, but these errors were encountered: