i want run curl on button click in asp.net
how to is posible
public void button_click ()
{
insert command
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https:test.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "Ads1b73112" . ":" . "[AuthToken]");
$result = curl_exec($ch);
if (curl_errno($ch))
{
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
}