HTTP.Receive()始终为null

时间:2014-12-07 15:56:26

标签: http null

{
        http.Connect();
        http.Request();
        String raw_data = http.Receive();
        http.Close();`enter code here`
        if (raw_data == null) return RETURN_ERROR;
        data = raw_data;
        return RETURN_SUCCESS;

}

Hello Guys,我的笔记本电脑和计算机上的程序都在同一个网络中。

笔记本电脑:Windows 8.1,VS教授 电脑:Windows 7,VS Ult。

在笔记本电脑上它始终有效,但在我的电脑上它总是返回null(这不是完整的代码) 任何想法为什么它在我的电脑上不起作用?

1 个答案:

答案 0 :(得分:0)

我遇到了问题。由于所有链接均为http而不是https,因此无法与YouTube配合使用,因此youtube仅适用于https,或者Google仅接受此链接。