3 ms·
Still no IRC support. Which - considering the project that became curl started out as an IRC bot - is slightly ironic.
by Svip 4y ago
Still no IRC support. Which - considering the project that became curl started out as an IRC bot - is slightly ironic.
- Faaak 4y agoYou're welcome to make a PR :-)
- rakoo 4y agoHow would that work ? cURL is built for request-reply usecases, with potentially long-lived connections, but once connected the handling happens outside of curl. irc is an interactive protocol, meaning that requests and replies would be handled inside cURL.
- Svip 4y agoAn example: A git hook that joins a channel every time a commit is pushed to its master branch, to inform an existing IRC bot, that it is time to pull the newest changes from the repository.
- misnome 4y agoThis _really_ sounds out of scope for what curl is
- nequo 4y agoUse netcat instead? printf "NICK gitbot42\nUSER foo bar baz\nPRIVMSG #gitevents :pull now\nQUIT :foobar\n" | nc irc.server.foo 6667
- Svip 4y agoOh of course, I am not waiting on cURL to support IRC. Rather I was suggesting a use case, where essentially the client logs in, performs a series of commands and then disconnects. And I feel that is fitting with how cURL operates.
- frumiousirc 4y agoYet, Curl supports TELNET. Another potential use case for IRC is scripting a data collector to connect, run /list on a number of IRC networks, and disconnect. Eg, something similar to whatever netsplit.de does to collect its statistics. But then, given the ability to connect to IRC via TELNET, perhaps Curl can already claim support for IRC.
- rakoo 4y agoYeah that's my point: that would be like saying cURL supports XMPP because there are HTTP/web socket bridges, but that's not the point. I guess cURL could connect, with, send a message and leave, or list rooms, but that's already a hack on the original use case of IRC. And it's only a small fraction of what IRC is used for, namely people interacting with each other. "Supporting IRC" would mean at least that.