#curl vs guzzle

8 messages · Page 1 of 1 (latest)

worn rock
#

Hello everyone. Can smb explain what is wrong with good old curl, and why guzzle is used? What are the use cases for guzzle? Because for me it look unreasanoble to use curl wrapper insted of curl. What are ur opinions?

#

curl vs guzzle

distant coral
worn rock
distant coral
#

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

boreal cargo
#

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.