Hacker News new | ask | show | jobs
by SEJeff 2449 days ago
Failed entirely to work on my first attempt with:

    curl -XHEAD https://google.com
It is just flat out wrong on:

    curl -X HEAD https://google.com
In that it does a GET request:

    import requests
    
    response = requests.get('https://google.com/')
Clever idea, but my first totally valid example failed (it does OPTIONS, GET, POST, PUT, PATCH successfully)
3 comments

`curl --head` (short form: `-I`) is converted correctly though, and `curl -X HEAD` (or `-XHEAD`) does generate warnings telling you to use `--head`/`-I`.
In case the creator of this tool doesn't read this thread, you can report the issues on GitHub: https://github.com/NickCarneiro/curlconverter/issues
Even if the creator of a tool does read the thread, discussions like these are not the place to report bugs.