in reply to curl in Perl (GET and POST)

So what is the question?

What you posted isn't a "php" expression, so ... perlfunc, system, Capture::Tiny LWP