VB.net dönüşüm Kıvrılma

1 Cevap php

ive searched everywhere and cannot find how to post data using vb.net
So i was wondering if someone can convert this curl code I made into vb.net :)

$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"; 
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE ); // return into a variable
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$result = curl_exec( $ch ); // run!
curl_close($ch);

$ Veri bir dizi değil, olsa vb.net nasıl çalışacağını emin olmak.

1 Cevap

CURL bağımsız bir uygulamadır ve bir PHP uzantısı PHP kodu içinde sorunsuz bir şekilde bunu kullanmak için izin verir. Yani o. NET kabuk komutları ile çalışmak CURL yükleyebilir ve alabilirsiniz ... aynı zamanda siz de bu yararlı olabilir iken.

http://curl.haxx.se/libcurl/dotnet/