I did this
From a Google doc I copy-pasted a curl command that was:
curl -i 10.1.2.9 -H “host: store.example.com”
Note that what appear as double-quotes around host: store.example.com are not the normal double-quotes used in computing but used in Document editing programs like GoogleDoc or Word. But this trips up curl and it gives me the following output:
HTTP/1.1 404 Not Found
content-length: 18
content-type: text/plain
date: Thu, 28 Mar 2024 05:04:59 GMT
via: 1.1 google
fault filter abortcurl: (6) Could not resolve host: store.example.xn--com-9o0a
I spent considerable amount of time trying to troubleshoot this since the error message was very misleading
I expected the following
curl should probably recognize the unsupported characters on the command line and generate a message while parsing those arguments instead of generating an error deep inside (which is what "fault filter abort" looks like)
curl/libcurl version
curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.11 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
Release-Date: 2023-02-20, security patched: 7.88.1-10+deb12u5
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp 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
Linux xxxxx 6.1.0-18-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
I did this
From a Google doc I copy-pasted a curl command that was:
Note that what appear as double-quotes around
host: store.example.comare not the normal double-quotes used in computing but used in Document editing programs like GoogleDoc or Word. But this trips up curl and it gives me the following output:I spent considerable amount of time trying to troubleshoot this since the error message was very misleading
I expected the following
curl should probably recognize the unsupported characters on the command line and generate a message while parsing those arguments instead of generating an error deep inside (which is what "fault filter abort" looks like)
curl/libcurl version
curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.11 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
Release-Date: 2023-02-20, security patched: 7.88.1-10+deb12u5
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp 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
Linux xxxxx 6.1.0-18-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux