What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-04 20:31:15
PHP + curl, HTTP POST sample code?
$post = [ 'teste' => $_POST['teste'] ]; httpPost('url.com', $post); // function function httpPost($url, $data) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_set... Add solution