How can convert bellow curl function in php to asp.net .
$this->debug($url);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_USERAGENT, $this->__expected_useragent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 90);
$page = curl_exec($ch);
if (!curl_errno($ch)) {
$this->debug($page);
curl_close($ch);
} else {
$this->debug(curl_error($ch));
$page = false;
}
return $page;
Thanks