Answers for "postman get curl"

PHP
10

http post request php curl

$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_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($curl);
    curl_close($curl);
    return $response;
}
Posted by: Guest on June-08-2020
2

postman export curl command

Click the Code button (it's right below Save).
Select curl from the drop-down menu.
Posted by: Guest on May-14-2020
2

can i send curl request inside postman

inside postman on right side panel there last second option is of code where you
can see the curl request for the postman request sent
Posted by: Guest on February-09-2021

Browse Popular Code Answers by Language