Replies: 2 comments 1 reply
-
|
okay so some people have dug into this in the past. This person filed an issue on requests: psf/requests#2912
and on go: golang/go#13488
Somebody asked on stack overflow, which is probably where the agent's answer came from: https://superuser.com/questions/1929792/how-do-i-pass-question-marks-to-server-when-newer-curl-8-11-1-strips-questio |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
See #21584 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I can tell, it's legal by spec to send and act on a trailing
?; it's a present but empty query component¹. The curl CLI strips it, however:This appears to have been introduced in release 8.8.0 in commit 3eac21d, and there's no easy way to disable it. The agent suggested as a workaround:
Which works, but is awkward.
My question is, why does curl strip a trailing
?by default? As a user I find it to be surprising behavior.¹: I know I am not a spec expert, so if I'm mistaken here I will be happy to be corrected
Beta Was this translation helpful? Give feedback.
All reactions