Hi,
Can somebody help me to convert the following code to c#
function uploadToImageshack($filename) {
$ch =
curl_init("http://www.imageshack.us/index.php");
$post['xml']='yes';
$post['fileupload']='@'.$filename;
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 240);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:
'));
$result = curl_exec($ch);
curl_close($ch);
if (strpos($result, '<'.'?xml version="1.0"
encoding="iso-8859-1"?>') === false) {
return 'failed';
} else {
return $result; // XML data
}
}
Or if there is any tool to convert PHP code to C# code plz help in
that
Thanks in advance
Email-id:- sindhu.kandhaswamy@a1technology.com