logoalt Hacker News

pratyahavatoday at 5:13 AM2 repliesview on HN

this is a nice idea, but idk why, in macos if i do `nc -l 127.0.0.1 gopher` and then try to open url "http://127.0.0.1:gopher/" - safari does not open it, no requests visible in the `nc` output.

also `curl -v http://127.0.0.1:gopher/` gives error message

  * URL rejected: Port number was not a decimal number between 0 and 65535
  * Closing connection
  curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
so the ports are named, it is nice, but in practice it does not make life easier.

Replies

bandie91today at 5:32 AM

> http://...:gopher

is it http or gopher? :)

show 2 replies
Tepixtoday at 6:02 AM

As bandie pointed out, you‘re explicitly making a http request. Duh.

nc is for generic connections and handles it well.

show 1 reply