HTTP: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Undo revision 315436 by WdeCvfYlmB (talk)) |
Thundergnat (talk | contribs) (Undo revision 315435 by WdeCvfYlmB (talk)) |
||
Line 854: | Line 854: | ||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
<lang factor>USE: http.client |
<lang factor>USE: http.client |
||
"http://www. |
"http://www.rosettacode.org" http-get nip print</lang> |
||
=={{header|Forth}}== |
=={{header|Forth}}== |
||
{{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"www.w3.org" 80 open-socket |
|||
⚫ | |||
s" localhost" 80 open-socket |
|||
⚫ | |||
dup pad 8092 read-socket type |
dup pad 8092 read-socket type |
||
close-socket |
close-socket</lang> |
||
</lang> |
|||
=={{header|friendly interactive shell}}== |
=={{header|friendly interactive shell}}== |