{"action":"created","issue":{"url":"https://api.github.com/repos/curl/curl/issues/3220","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/3220/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/3220/comments","events_url":"https://api.github.com/repos/curl/curl/issues/3220/events","html_url":"https://github.com/curl/curl/issues/3220","id":376919323,"node_id":"MDU6SXNzdWUzNzY5MTkzMjM=","number":3220,"title":"unexpected bad/illegal url format error","user":{"login":"hagai-auro","id":32271435,"node_id":"MDQ6VXNlcjMyMjcxNDM1","avatar_url":"https://avatars2.githubusercontent.com/u/32271435?v=4","gravatar_id":"","url":"https://api.github.com/users/hagai-auro","html_url":"https://github.com/hagai-auro","followers_url":"https://api.github.com/users/hagai-auro/followers","following_url":"https://api.github.com/users/hagai-auro/following{/other_user}","gists_url":"https://api.github.com/users/hagai-auro/gists{/gist_id}","starred_url":"https://api.github.com/users/hagai-auro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hagai-auro/subscriptions","organizations_url":"https://api.github.com/users/hagai-auro/orgs","repos_url":"https://api.github.com/users/hagai-auro/repos","events_url":"https://api.github.com/users/hagai-auro/events{/privacy}","received_events_url":"https://api.github.com/users/hagai-auro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-02T18:22:06Z","updated_at":"2018-11-02T20:19:59Z","closed_at":null,"author_association":"NONE","body":"<!-- Only file bugs here! Ask questions on the mailing list https://curl.haxx.se/mail/\r\n     Do not file security vulnerabilities here, e-mail curl-security at haxx.se\r\n\r\n     There are collections of known issues to be aware of:\r\n     https://curl.haxx.se/docs/knownbugs.html\r\n     https://curl.haxx.se/docs/todo.html       -->\r\n\r\nThe scenario is that I have a hostname `boing` in `/etc/hosts` pointing to 127.0.0.1 , and I port-forward to the real host.\r\n### I did this\r\n``$ curl boing:80``\r\n``curl: (3) URL using bad/illegal format or missing URL``\r\n\r\nand if I did:\r\n``$ curl http://boing:80``\r\nit worked\r\n\r\n### I expected the following \r\nI expected it to actually issue the request, but to illustrate the change from a previous version, if I hadn't defined `boing` in `/etc/hosts`, I'd get this:\r\n``$ curl  boing:80``\r\n``curl: (6) Could not resolve host: boing``\r\n\r\n### curl/libcurl version\r\n`$ curl -V`\r\n``curl 7.62.0 (x86_64-apple-darwin16.7.0) libcurl/7.62.0 OpenSSL/1.0.2p zlib/1.2.8 libidn2/2.0.5\r\nRelease-Date: 2018-10-31\r\nProtocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp \r\nFeatures: AsynchDNS IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy ``\r\n\r\n\r\n### operating system\r\n`` $ uname -a``\r\n``Darwin hagai-mba-osx 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 21 20:07:39 PDT 2018; root:xnu-3789.73.14~1/RELEASE_X86_64 x86_64 i386 MacBookAir6,2 Darwin``\r\n"},"comment":{"url":"https://api.github.com/repos/curl/curl/issues/comments/435497177","html_url":"https://github.com/curl/curl/issues/3220#issuecomment-435497177","issue_url":"https://api.github.com/repos/curl/curl/issues/3220","id":435497177,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTQ5NzE3Nw==","user":{"login":"gvanem","id":945271,"node_id":"MDQ6VXNlcjk0NTI3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/945271?v=4","gravatar_id":"","url":"https://api.github.com/users/gvanem","html_url":"https://github.com/gvanem","followers_url":"https://api.github.com/users/gvanem/followers","following_url":"https://api.github.com/users/gvanem/following{/other_user}","gists_url":"https://api.github.com/users/gvanem/gists{/gist_id}","starred_url":"https://api.github.com/users/gvanem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvanem/subscriptions","organizations_url":"https://api.github.com/users/gvanem/orgs","repos_url":"https://api.github.com/users/gvanem/repos","events_url":"https://api.github.com/users/gvanem/events{/privacy}","received_events_url":"https://api.github.com/users/gvanem/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T20:19:59Z","updated_at":"2018-11-02T20:19:59Z","author_association":"MEMBER","body":"And curiously a `curl boing` will try to resolve `boing`."}}
{"actor":{"display_login":"gvanem"}}