Guzzle can do this out of the box! This technique is also used to power some of the checks in Oh Dear.
PHP
Agent Experience Engineering: Designing Software Agents Can Work With
What Agent Experience engineering means in practice: discoverable code paths, scoped agent instructions, useful feedback, and human ownership of risky decisions. Read more