dddddd has quit [Remote host closed the connection]
<greghendershott>
selimcan: That should work. Headers for the net/url functions are supplied as a list of strings, each of which is formatted like you did.
<selimcan>
thanks greghendershott !
<greghendershott>
selimcan: BTW the net/url are fine, I grew up with Racket, using those. But see also net/http-client, which is newer.
<greghendershott>
For one thing, it takes a uri as string or bytes (no need to do string->url).
<greghendershott>
For another, it returns the response status, headers, and "body" as three values.
<greghendershott>
(If you're using get-pure-port, you don't care about the status and headers.)
<greghendershott>
(But if you someday wanted get-impure-port, then you'd need to parse out the three parts. Which isn't super hard, but is easier to do correctly with `http-sendrecv!`)
<selimcan>
I see
<greghendershott>
I don't mean to detour you, if get-pure-port is working fine and all you need.
<greghendershott>
Just pointing out another option, someday/maybe.
<selimcan>
On the contrary, that info is much appreciated
<greghendershott>
If the net/http-client docs seem a little opaque (maybe it needs more examples) then my main advice is http-sendrecv! is the one thing to look at first. :)
<greghendershott>
If you want to connect to a host, do one request/response, disconnect -- much like the net/url functions -- that is the easy button.
<greghendershott>
(The rest is of interest for keeping the conn open, doing multi reqs, etc.)
<greghendershott>
net/url ~= HTTP 1.0, and net/http-client ~= take advantage more of HTTP 1.1. roughly.
mr_yogurt has joined #racket
<selimcan>
The rest will come handy once I learn more about the internet/web protocols themselves :)
FreeFull has quit []
libertyprime has joined #racket
keep_learning_M has joined #racket
selimcan has quit [Remote host closed the connection]
jao has quit [Ping timeout: 248 seconds]
libertyprime has quit [Ping timeout: 245 seconds]
libertyprime has joined #racket
notzmv has joined #racket
libertyprime has quit [Ping timeout: 245 seconds]
libertyprime has joined #racket
orivej has joined #racket
moldybits has quit [Quit: WeeChat 2.4]
moldybits has joined #racket
iyzsong has quit [Ping timeout: 250 seconds]
ym555 has quit [Ping timeout: 272 seconds]
pera has quit [Quit: leaving]
_whitelogger has joined #racket
_whitelogger has joined #racket
_whitelogger has joined #racket
ym555 has joined #racket
endformationage has quit [Quit: WeeChat 2.4]
sauvin has joined #racket
vraid has quit [Ping timeout: 258 seconds]
Arcaelyx has quit [Ping timeout: 246 seconds]
_whitelogger has joined #racket
iyzsong has joined #racket
ym555 has quit [Ping timeout: 245 seconds]
YuGiOhJCJ has joined #racket
selimcan has joined #racket
mSSM has joined #racket
selimcan has quit [Remote host closed the connection]
manualcrank has quit [Quit: WeeChat 1.9.1]
m1dnight_ has quit [Quit: WeeChat 2.4]
libertyprime has quit [Ping timeout: 258 seconds]
m1dnight_ has joined #racket
libertyprime has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 246 seconds]
dddddd has joined #racket
dimitarvp has joined #racket
dimitarvp has quit [Client Quit]
orivej has joined #racket
orivej has quit [Ping timeout: 244 seconds]
Fernando-Basso has joined #racket
orivej has joined #racket
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
iyzsong has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 258 seconds]
DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
soegaard has joined #racket
jao has joined #racket
jao is now known as Guest34562
ZombieChicken has quit [Remote host closed the connection]
diip has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 248 seconds]
Guest34562 is now known as jao
soegaard has quit [Quit: soegaard]
rubic88 has quit [Remote host closed the connection]
efm has joined #racket
lavaflow has quit [Ping timeout: 258 seconds]
Fernando-Basso has quit [Remote host closed the connection]
Fernando-Basso has joined #racket
FreeFull has joined #racket
notzmv has quit [Read error: Connection reset by peer]
soegaard has joined #racket
SenasOzys has joined #racket
jao has quit [Ping timeout: 272 seconds]
libertyprime has quit [Remote host closed the connection]
endformationage has joined #racket
Arcaelyx has joined #racket
soegaard has quit [Quit: soegaard]
ng0 has joined #racket
sleepnap has joined #racket
ricekrispie2 has joined #racket
ricekrispie has quit [Ping timeout: 245 seconds]
soegaard has joined #racket
mfiano has quit [Ping timeout: 272 seconds]
mfiano has joined #racket
sleepnap has quit [Quit: Leaving.]
dddddd has quit [Quit: Hasta otra..]
dddddd has joined #racket
synthmeat has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
ubLIX has joined #racket
<diip>
hi
<diip>
I recently installed minimal-racket on a smallish arm machine
<diip>
is there any way to use the gui on arm? what libraries would I need