cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1191 When using a wrong hostname in --interface, the wrong host name appears in the error message

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Sun, 23 Jun 2013 18:29:42 +0000

- **status**: open-confirmed --> closed-fixed

---
** [bugs:#1191] When using a wrong hostname in --interface, the wrong host name appears in the error message**
**Status:** closed-fixed
**Created:** Sun Feb 10, 2013 11:30 PM UTC by Kim Vandry
**Last Updated:** Fri Jun 21, 2013 01:43 PM UTC
**Owner:** Daniel Stenberg
While testing my patch for #1189 I discovered a related problem which is pre-existing: I can reproduce it on the current git master. For test 1084, even though the exit code is correct (45, CURLE_INTERFACE_FAILED) the error text is wrong and confusing:
src/curl --interface DoesNotExist.example.com http://www.google.com/
curl: (45) Could not resolve host: www.google.com (Domain name not found)
Actually it failed to resolve DoesNotExist.example.com, not www.google.com like the error message says. If you use --proxy then the error message says "Could not resolve proxy" which is also not true.
I am not sure what the best way to fix this would be (I can think of a hack or two), but I just wanted to document it single I noticed it.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-06-23

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET