HTTP: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Undo revision 315437 by WdeCvfYlmB (talk)) |
Thundergnat (talk | contribs) (Undo revision 315436 by WdeCvfYlmB (talk)) |
||
Line 859: | Line 859: | ||
{{works with|GNU Forth|0.7.0}} |
{{works with|GNU Forth|0.7.0}} |
||
This works at the socket level, returning both the HTTP headers and page contents. |
This works at the socket level, returning both the HTTP headers and page contents. |
||
<lang forth> |
<lang forth> |
||
include unix/socket.fs |
|||
⚫ | |||
s" localhost" 80 open-socket |
|||
⚫ | |||
dup pad 8092 read-socket type |
dup pad 8092 read-socket type |
||
close-socket |
close-socket |
||
</lang> |
|||
=={{header|friendly interactive shell}}== |
=={{header|friendly interactive shell}}== |
||
{{trans|UNIX Shell}} |
{{trans|UNIX Shell}} |
||
<lang fishshell>curl - |
<lang fishshell>curl --silent --location http://www.w3.org/Home.html</lang> |
||
⚫ | |||
<lang fishshell> |
<lang fishshell>wget --output-document=- --quiet http://www.w3.org/Home.html</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
{{works with|BSD}} |
{{works with|BSD}} |
||
<lang fishshell>ftp -o - http://rosettacode.org ^ /dev/null</lang> |
<lang fishshell>ftp -o - http://rosettacode.org ^ /dev/null</lang> |