Maja changed the topic of ##bash-crimes to: we bash back | club of folks preoccupied in whether they could, not whether they should | logs https://libera.irclog.whitequark.org/~h~bash-crimes
<sdomi> JAA: i will be floored if this is accepted as a genuine issue and not some obscure "by design" quirk :D
<sdomi> not because your writeup is bad, rather because of how this came to be found. really cool!
<JAA> sdomi: Yeah, good thing I didn't mention the background. :-P
<sdomi> you absolutely should have, in the very end!
<JAA> I'm running into the next problem, by the way, which looks like buffering of the send data.
<sdomi> throwback to that one time where we sent a rickroll to the PowerDNS team because we tried inserting it into the zone and that triggered a failure mode. so we dumped the zone as PoC
<JAA> lol
<JAA> Added a note. :-P
<JAA> I have a dumb idea for solving the send buffer problem.
<JAA> (Because according to some quick research, it seems that it normally requires recompiling curl.)
<janvhs> I finally wrote a nice way to implement arrays in POSIX shell *-*
<sdomi> janvhs: exclusively newline-delimetered?
<sdomi> also, that heredoc. waow
<sdomi> nice
<janvhs> yesss, because I need spaces in my arrays too often
<janvhs> Thanks :3
<janvhs> Also according to POSIX using echo is illigal now ;P
<janvhs> *:P
<JAA> I now have a working curl-irc client. \o/
<jetchisel> That is indeed worthy of bash-crimes! \0/
<janvhs> That’s so cursed… I love it
<janvhs> Does upload-hile and http0.8 get rid of the HTTP header?
<whitequark[cis]> til http0.8 is a thing
<jn> based on the name BAVA i imagined something differently cursed: a JVM implementation in Bash
<misentropy> nice one JAA
<JAA> janvhs: There's no way to make a request without headers as far as I know. --http0.9 makes curl accept a *response* without the HTTP wrapper, i.e. simply plain data.
<janvhs> whitequark[cis]: whoops I meant http0.9 lol
<janvhs> JAA: oh but can the server handle this? Because according to the spec it’s a tcp stream with a well defined format (afaik)
<JAA> janvhs: I'm suppressing all automatic headers explicitly. So the only thing that doesn't comply with the IRC spec is the empty line after the 'headers'.
<JAA> And the empty lines afterwards to work around that curl bug.
<misentropy> now do a curl mail transfer agent
<misentropy> lol
<misentropy> user agent, whatever
<JAA> misentropy: Hmm, curl already supports all relevant mail protocols (IMAP, POP3, SMTP).
<misentropy> go figure
TheTechRobo has joined ##bash-crimes
<janvhs> JAA: ohhhhh sick! The leading \r\n from the headers is ignored as an empty message anyways so 100% spec conformance :oooo
<JAA> janvhs: Oh right, there's a provision for empty lines, neat. I hadn't even noticed that. :-)
<JAA> I wonder whether empty lines are counted for flooding.
<JAA> Hi TheTechRobo :-)
<TheTechRobo> :-)
<janvhs> JAA: You’re blocked for spamming xDD
<JAA> I mostly only send at most two lines per second, so it *should* be fine.