User Tools

Site Tools


php_curl

This is an old revision of the document!


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.1516786824.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

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