httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.71k stars 3.67k forks source link

Default to localhost #1519

Closed sayanarijit closed 11 months ago

sayanarijit commented 11 months ago

Checklist


Enhancement request

Default to localhost when no hostname is passed.

e.g.

http /
# http localhost/

http :8080

# http localhost:8080

Problem it solves

It reduces the number of keys I have to type to do a simple request on servers running on localhost, for the most common use cases.


Additional information, screenshots, or code examples

sayanarijit commented 11 months ago

Ok it's already implemented. It could be a bug...

sayanarijit commented 11 months ago

It was a web server bug.