#curl vs guzzle
8 messages · Page 1 of 1 (latest)
Guzzle is a php http client?
Yes
Then you use guzzle when you need to make http requests with php
Otherwise if you're just using bash or something else, just use curl
I bust my ass to use curl in situations where guzzle would probably just work out of the box.
Heck I use PHP to call a node.js script that manages a headless chrome instance when I really need to get a page off the web without getting blocked by server protection.
I should probably cave and use guzzle but I spent a lot of time doing network admin/security and one of the ground rules was:
Avoid unnecessary dependencies—don’t install packages you don’t need.