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

In the case of Google, not at all:

    $ curl -v https://google.com
    [...]
    < HTTP/2 301
    < location: https://www.google.com/


Just an FYI: in this case you might want to use `curl -i` which will display just headers + body (switch `-v` displays lots of other information too).

    $ curl -i https://google.com
    HTTP/1.1 301 Moved Permanently
    Location: https://www.google.com/
    ...
EDIT: interesting that it responds with HTTP/2 in your case and HTTP/1.1 in mine, would need to look up why the responses are different.




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

Search: