Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从php到vb.net的转换_Php_Vb.net - Fatal编程技术网

从php到vb.net的转换

从php到vb.net的转换,php,vb.net,Php,Vb.net,我需要将这段代码从php转换为vb.net。有什么想法吗 $this->load->library('curl'); $this->curl->create('http://abc.com'); $jsonstr = '{"data": [{ "campaign_id":"5", "owner_id":"0",

我需要将这段代码从php转换为vb.net。有什么想法吗

    $this->load->library('curl');
    $this->curl->create('http://abc.com');
    $jsonstr = '{"data":
                [{
                    "campaign_id":"5",
                    "owner_id":"0",
                    "status":"unassigned"
                },
                {
                    "campaign_id":"5",
                    "owner_id":"0",
                    "status":"unassigned"
                ]}';

    $this->curl->post(array(
        'insuranceleads' => $jsonstr
    ));
    $result = $this->curl->execute();
    echo $result;

Curl是一个可执行文件。要从.NET使用它,您可以启动一个进程对象并运行它。我相信PHP封装了它,因为我不相信您可以将Curl作为库使用