Skip to content

Port zero no longer accepted in URLs #8090

Closed

Description

@bagder

I did this

curl http://localhost:0
curl: (3) URL using bad/illegal format or missing URL

(via @bradfitz at https://twitter.com/bradfitz/status/1466474708841512960)

I expected the following

$ curl http://localhost:0
curl: (7) Failed to connect to localhost port 0 after 0 ms: Connection refused

This worked before 7.62.0. I even blogged about using port zero a while ago.

curl/libcurl version

7.80.0 and current git

operating system

independent

Activity

  1. self-assigned this
    on Dec 3, 2021
  2. added a commit that references this issue on Dec 3, 2021
    f9b226b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions