是否可以用VB.NET等其他语言导入PHP的库文件php_curl.dll?

时间:2011-01-07 14:59:01

标签: vb.net curl dllimport

我想创建一个网页数据解析器,为此,我希望它能在Dekstop应用程序中运行。

我想知道我们是否可以在 VB.NET 应用程序中导入php_curl.dll

如果你们有一个小例子......:P我会喜欢读它。

谢谢!

2 个答案:

答案 0 :(得分:0)

你见过System.Net.WebClient吗?这应该让你从网上下载html(和其他内容)。

Dim html As String
Using wc As New WebClient()
   html = wc.DownloadString("http://stackoverflow.com")
End Using

答案 1 :(得分:0)

你已经在窗户上卷曲,所以你不需要使用php curl curl download page