Month: September 2025

curl: getting performance data with curl

the api endpoint you’ve written is slow. everyone says so. but how slow? there are lots of packages we could install to inspect an url’s performance, but why bother with all that when curl can get us the performance metrics we need?

in this post, we’ll be going over using curl to get data like execution time, download speed and header values.

a user waits patiently for an url that was not profiled for performance
Continue reading →

php: a curl cheatsheet

php’s implementation of curl is very powerful. unfortunately, it’s also frustratingly complex and the official docs can be terse and dense. every php developer who uses curl frequently accumulates, over time, a directory of tried-and-true snippets for reference; a ‘cheatsheet’, basically. this is mine.

a php dev copies and pastes useful php curl examples from a blog post
Continue reading →