Comments (4)
from curl.
The fault filter abort
text is not from curl, it is body content from the server.
from curl.
This case is really a matter of "garbage in, garbage out". It is difficult for curl to know when the garbage input is intended or not.
from curl.
I understand. Thanks for fixing it. One more thing that confused me. With the bad unicode “
character(s) and with -v
option I see:
curl -v -i 10.1.2.9 -H “host: store.example.com”
* Trying 10.1.2.9:80...
* Connected to 10.1.2.9 (10.1.2.9) port 80 (#0)
> GET / HTTP/1.1
> Host: 10.1.2.9
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
HTTP/1.1 404 Not Found
< content-length: 18
content-length: 18
< content-type: text/plain
content-type: text/plain
< date: Thu, 28 Mar 2024 20:12:14 GMT
date: Thu, 28 Mar 2024 20:12:14 GMT
< via: 1.1 google
via: 1.1 google
<
* Connection #0 to host 10.1.2.9 left intact
fault filter abort* Could not resolve host: store.example.xn--com-9o0a
* Closing connection 1
curl: (6) Could not resolve host: store.example.xn--com-9o0a
But with the right quote character(s):
curl -v -i 10.1.2.9 -H "host: store.example.com"
* Trying 10.1.2.9:80...
* Connected to 10.1.2.9 (10.1.2.9) port 80 (#0)
> GET / HTTP/1.1
> Host: store.example.com
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
< date: Thu, 28 Mar 2024 20:12:39 GMT
date: Thu, 28 Mar 2024 20:12:39 GMT
< via: 1.1 google
via: 1.1 google
< content-length: 0
content-length: 0
<
* Connection #0 to host 10.1.2.9 left intact
The 401 Unauthorized is expected in the second example. But the questions are:
- who is generating the error "Could not resolve host: store.example.xn--com-9o0a" in the first case? It looks like curl didn't send any of this stuff to the server so it must have been from curl itself
- because of the
-H
argument curl should have treated the following argument only as header content to be included in the request. But for some reason it treated the whole string “host: store.example.com” as a hostname to be resolved. Is that correct?
from curl.
Related Issues (20)
- Writing xattr fails when protocol is guessed HOT 1
- auracle fail with libcurl 8.7.1 HOT 16
- cf-socket.c contains references to non-existent struct fields
- --compressed fails with error 23 HOT 2
- etag changes incorrect HOT 3
- Warnings on compilation curl static lib v8.6 and v8.7.1 HOT 10
- Spurious CURLE_WRITE_ERROR at transfer end with Brotli encoding HOT 1
- queued up transfers do not timeout correctly HOT 15
- chunked POST via callback regression in 8.7.X HOT 30
- lib/cf-h1-proxy.c: `-Wnull-dereference` warnings with gcc 12 / curl 8.7.1 HOT 3
- Curl fails to build reproducibly HOT 7
- 8.7.1: rustls fails to pull from GitHub HOT 13
- curl crash on multi-thread with multi-handle? HOT 2
- 8.7.1 shell completions scripts no longer built and installed by default HOT 7
- DISTROS.md Cygwin Info HOT 1
- [Regression] libcurl does not finish CURLOPT_UPLOAD request after a connection lost without data tranfer HOT 7
- No verbose output for DoH server HOT 6
- libcurl: unexpected url-decoding for CURLOPT_PROXYPASSWORD & CURLOPT_PROXYUSERNAME values
- Regression: CURLINFO_REQUEST_SIZE returns 0 when the response is aborted HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl.