HTTP: Difference between revisions
Undo revision 315436 by WdeCvfYlmB (talk)
Thundergnat (talk | contribs) (Undo revision 315437 by WdeCvfYlmB (talk)) |
Thundergnat (talk | contribs) (Undo revision 315436 by WdeCvfYlmB (talk)) |
||
Line 859:
{{works with|GNU Forth|0.7.0}}
This works at the socket level, returning both the HTTP headers and page contents.
<lang forth>
dup s\" GET /Home.html HTTP/1.0\n\n" rot write-socket▼
s" localhost" 80 open-socket
dup pad 8092 read-socket type
close-socket
</lang>
=={{header|friendly interactive shell}}==
{{trans|UNIX Shell}}
<lang fishshell>curl -
<lang fishshell>
▲<lang fishshell>wget -O - -q http://rosettacode.org/</lang>
▲<lang fishshell>lftp -c "cat http://rosettacode.org/"</lang>
{{works with|BSD}}
<lang fishshell>ftp -o - http://rosettacode.org ^ /dev/null</lang>
|