A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
10
Task/HTTP/D/http-3.d
Normal file
10
Task/HTTP/D/http-3.d
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import tango.io.Console;
|
||||
import tango.net.InternetAddress;
|
||||
import tango.net.device.Socket;
|
||||
|
||||
void main() {
|
||||
auto site = new Socket;
|
||||
site.connect (new InternetAddress("google.com",80)).write ("GET / HTTP/1.0\n\n");
|
||||
|
||||
Cout.stream.copy (site);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue