Suliman via Digitalmars-d-learn
2014-10-23 19:07:08 UTC
import std.stdio;
import std.conv;
import std.string;
import std.net.curl;
void main()
{
string content = get("d-lang.appspot.com/testUrl2");
}
Error: cannot implicitly convert expression (get("d-lang.appsp
ot.com/testUrl2", AutoProtocol())) of type char[] to string
code from: http://dlang.org/phobos/std_net_curl.html#get
import std.conv;
import std.string;
import std.net.curl;
void main()
{
string content = get("d-lang.appspot.com/testUrl2");
}
Error: cannot implicitly convert expression (get("d-lang.appsp
ot.com/testUrl2", AutoProtocol())) of type char[] to string
code from: http://dlang.org/phobos/std_net_curl.html#get