requests module generates " Can't parse uri '' "
cartland
example at example.com
Fri Nov 8 03:36:22 UTC 2019
On Friday, 8 November 2019 at 03:31:56 UTC, Adam D. Ruppe wrote:
> On Friday, 8 November 2019 at 03:29:41 UTC, cartland wrote:
>> When I run dub, I get
>
> What was your main() code?
>
> The error makes me think you might have just tried like get("")
> or something
import std.stdio;
import requests;
void main() {
auto content = getContent("https://httpbin.org/get",
queryParams("name", "any name", "age", 42));
writeln(content);
}
More information about the Digitalmars-d-learn
mailing list