making http request with gforth
Liste des Groupes
Revenir à cl forth
Sujet :
making http request with gforth
De :
okflo (at) *nospam* teletyp.ist
Groupes :
comp.lang.forth
Date :
26. Dec 2024, 13:40:33
Autres entêtes
Organisation :
A noiseless patient Spider
Message-ID :
<87jzbmbose.fsf@news.diesenbacher.net>
User-Agent :
Gnus/5.13 (Gnus v5.13)
hi forthers,
I am trying to do a (very simple and naive) http-request
with gforth (current from git):
#+begin_src forth
require unix/socket.fs
: test-http
s" httpbin.org" 80 open-socket >r
s" GET / HTTP/1.1\nHost httpbin.org\n\n" r@ write-socket
r@ pad 80 read-socket
r> close-socket ;
#+end_src
but /read-socket/ doesn't return anything - result is pad 0 on
the stack.
probably I misunderstand howto use socket.fs?
additional question - has anyone already done bindings for
libcurl?
many thanks for any hints & merry christmas - okflo
Date
Sujet
#
Auteur
26 Dec 24
making http request with gforth
5
okflo
27 Dec 24
Re: making http request with gforth
4
josv
27 Dec 24
Re: making http request with gforth
1
okflo
29 Dec 24
Re: making http request with gforth
1
josv
9 Jan 25
Re: making http request with gforth
1
dave thompson 2
Haut de la page
Les messages affichés proviennent d'
usenet
.
NewsPortal