HTTP: Difference between revisions

Content added Content deleted
mNo edit summary
Line 2,762: Line 2,762:
Dim content As String = client.DownloadString("http://www.google.com")
Dim content As String = client.DownloadString("http://www.google.com")
Console.WriteLine(content)
Console.WriteLine(content)
</syntaxhighlight>

=={{header|V (Vlang)}}==
<syntaxhighlight lang="Vlang">
import net.http

fn main() {
resp := http.get("http://rosettacode.org/robots.txt") or {println(err) exit(-1)}
println(resp.body.str())
}
</syntaxhighlight>
</syntaxhighlight>