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