hello im trying send PUT request with email information to specified url but im getting an error:
"success":false,"error":"The request you sent is either invalid or too big."
I've seen many tutorials but cant make any of them work. This is code i've been trying:
<?php
$handle = curl_init();
curl_setopt_array(
$handle,
array(
CURLOPT_URL => "http://www.trikoder.hr/api/v1/RequestJobApplication/",
CURLOPT_POSTFIELDS => "?email=xxx@gmail.com",
CURLOPT_RETURNTRANSFER => true
)
);
$response = curl_exec($handle);
curl_close($handle);
echo '<pre>';
print_r($response);
any help is appreciated!