PHP code example of dd / evolutioncms-snippets-ddmakehttprequest
1. Go to this page and download the library: Download dd/evolutioncms-snippets-ddmakehttprequest library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dd / evolutioncms-snippets-ddmakehttprequest example snippets
\DDTools\Snippet::runSnippet([
'name' => 'ddMakeHttpRequest',
'params' => [
'url' => 'https://www.example.com/',
'postData' => [
'name' => 'John',
'surname' => 'Doe'
],
'headers' => [
'Accept: application/vnd.api+json',
'Content-Type: application/vnd.api+json'
],
'proxy' => 'socks5://user:[email protected]:5555'
]
]);
[[ddMakeHttpRequest?
&url=`http://www.example.com/`
&postData=`name=John&surname=Doe`
]]