HTTP: Difference between revisions

Undo revision 315435 by WdeCvfYlmB (talk)
(Undo revision 315436 by WdeCvfYlmB (talk))
(Undo revision 315435 by WdeCvfYlmB (talk))
Line 854:
=={{header|Factor}}==
<lang factor>USE: http.client
"http://www.w3rosettacode.org/Home.html" http-get nip print</lang>
 
=={{header|Forth}}==
{{works with|GNU Forth|0.7.0}}
This works at the socket level, returning both the HTTP headers and page contents.
<lang forth>include unix/socket.fs
includes"www.w3.org" unix/80 open-socket.fs
dup s\" GET /Home.html HTTP/1.0\n\n" rot write-socket
 
s" localhost" 80 open-socket
dup s\" GET / HTTP/1.0\n\n" rot write-socket
dup pad 8092 read-socket type
close-socket</lang>
</lang>
 
=={{header|friendly interactive shell}}==
10,333

edits