Updates: 2019-03-23 - 2019-03-25

2019-03-23

  • HTTP Statuses
    • Support MessagePack response.
      • e.g.
        • curl curl -H 'Accept:application/msgpack' https://httputil.dev/200
        • curl https://httputil.dev/200/msgpack
    • Found pretty option.
      • I found echo already support pretty print response, so added it to documentation.
      • e.g.
        • curl https://httputil.dev/200/json?pretty
  • IP address

    • This endpoint returns JSON of your current IP address and hostname.
    $ curl https://httputil.dev/ip
    {"host":"your-providers.hostname.example.com.","ip":"203.0.113.1"}
    

2019-03-25

  • IP address

    • Add tab separated plain text output.
      It's convenient for use with shell environment.

      MY_IP=$(curl https://httputil.dev/ip/plain | cut -f2)
      203.0.113.1
      

More from httputil
All posts