User Tools

Site Tools


php_curl

PHP Curl

Sometimes you need to test php curl. You can use php -r to do this.
(Using parameter -r you can directly execute PHP code simply as you would do inside a .php)

# php -r '
> $ch = curl_init(); 
> curl_setopt($ch, CURLOPT_URL, "https://api.mailgun.net");
> curl_exec($ch);
> '

php_curl.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki