-
-
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
curl_url_get for CURLUPART_HOST returns percent decoded string #14942
Labels
Comments
Also, if I set the host directly using |
Pls check for a way to set the encoding in standards, UTF-8 or something
equivalent. Then the character should be printed properly.
…On Tue, 17 Sept 2024 at 17:34, Venkat Krishna R ***@***.***> wrote:
Also, if I set the host directly using curl_url_set(urlh, CURLUPART_HOST,
hostname.c_str(), 0); and then call get, the hostname is not percent
decoded. I get the expected result.
—
Reply to this email directly, view it on GitHub
<#14942 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHD2DTVGAHAVPSJZITISTTZXALD5AVCNFSM6AAAAABOLJX74CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJVGUZDENJZGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
------
With Best Wishes,
Jayanta Mandal
Hyderabad, India
|
The host name is indeed treated inconsistently with other components without it being documented. |
bagder
added a commit
that referenced
this issue
Sep 17, 2024
As nothing in the documentation suggested otherwise and URL components are by default stored and returned URL encoded. Fixes #14942 Reported-by: Venkat Krishna R
bagder
added a commit
that referenced
this issue
Sep 17, 2024
When a full URL is set (parsed), the hostname component is stored URL decoded (with default zero flags). While perhaps surprising and inconsistent, the API has done this for quite some time already and changigtn this now would break existing behaviour. Fixes #14942 Reported-by: Venkat Krishna R
moritzbuhl
pushed a commit
to moritzbuhl/curl
that referenced
this issue
Sep 20, 2024
When a full URL is set (parsed), the hostname component is stored URL decoded (with default zero flags). While perhaps surprising and inconsistent, the API has done this for quite some time already and changigtn this now would break existing behaviour. Fixes curl#14942 Reported-by: Venkat Krishna R Closes curl#14946
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
I expected the following
but the actual output was
curl/libcurl version
libcurl/8.10.0
operating system
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: