Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I (and the provided link) are not referring to http://example.com:80 to https://example.com:443 type redirects, though those are certainly nice too. They are, indeed, solely about http://example.com:443 to https://example.com:443 type redirects and what those can provide.

The "why/value" is usually in clearly handling accidents in hardcoding connection info, particularly for local API/webdev environments where you might pass connection information as an object/list of parameters rather than normal user focused browser URL bar entry. The upside is a connection error can be a bit more opaque than an explicit 400 or 302 saying what happened or where to go instead. That's the entire reason webservers tend to respond with an HTTP 400 in such scenarios in the first place.

Like I said though, once I remembered this was more a "hacky" type solution to give an error than built-in protocol upgrade functionality I'm not so sure the small amount of juice would actually be worth the relatively complicated squeeze for such a tool anymore.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: