-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 -G --data x / returns curl: (27) Out of memory #9889
Comments
If the URL that -G would try to add a query to could not be parsed, it would display curl: (27) Out of memory It now instead shows: curl: (2) Could not parse the URL, failed to set query Reported-by: Alex Xu Fixes #9889
Hm... as I understand, in new curl versions, https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command/10797966 won't work anymore. Is there a better way to URL-encode some query string parameters and also send request body? |
I don't understand what you say won't work anymore. We don't break behavior. Also, not really related to this bug. |
sorry, I meant to link to https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command/10797966#10797966. example:
|
My points remain the same. Why wouldn't that work? |
before b82eb72, |
|
Steps to reproduce
Expected results
No output, or
curl: (3) URL using bad/illegal format or missing URL
.Actual results
Additional information
The actual command is closer to
curl -Gso /dev/null -w '%{url_effective}' --data-urlencode 'foo=bar?' /path
, which in previous curl versions returned/path?foo=bar%3F
but now returnscurl: (27) Out of memory
. This usage is arguably dubious to begin with, but if it is not supported, I think the error message shouldn't be "Out of memory".curl/libcurl version
curl 7.86.0 (x86_64-pc-linux-gnu) libcurl/7.86.0 OpenSSL/3.0.7 zlib/1.2.13 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.50.0
Release-Date: 2022-10-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
operating system
Arch Linux
The text was updated successfully, but these errors were encountered: