Tag: curl

  • Get OctoPrint Status via Bash

    Get OctoPrint Status via Bash

    I’m working on a module to add OctoPrint status to my zsh prompt, which I’ll probably write about in the future as a bigger post about my prompt customizations. To start with that though, I need to play around with accessing the API via curl. So here’s my super alpha version that will request the…

  • Bash Script: Calculate before/after 2: Calculate Harder

    Bash Script: Calculate before/after 2: Calculate Harder

    I’ve updated my script to test URL performance during changes, measuring the Time to First Byte (TTFB). The script now records initial and subsequent TTFB to determine update impact, displaying percentage change—a helpful tool for reporting.

  • Sending Prowl Alerts via Bash

    Sending Prowl Alerts via Bash

    Learn how to send alerts using Prowl for server scripting, ensuring proper alert notifications, even after struggling with other options like Twilio.

  • Quick Tip: Viewing Headers With Curl

    Quick Tip: Viewing Headers With Curl

    Learn how to inspect HTTP headers for redirects, cache details, SSL, etc., using `curl` with `-I` switch. Discover how to resolve potential inconsistencies between `HEAD` and `GET` requests by using `-X` switch to override the default method in `curl` commands. Simplify with a combined command: `curl -IXGET http://example.com/`.