How to connect to IRC through a proxy?
<p>I wrote a script that connects to an IRC server using sockets, but how would I connect through a proxy? I thought it might be possible using curl, but it seems it's more suited to HTTP and doesn't support continuously sending packets. I thought it would be as simple as connecting to the proxy through fsockopen() and sending the packets through, but how do I tell the proxy (SOCKS 4/5) to connect to the IRC server? I can't fsockopen() inside fsockopen(), if you know what I mean (probably not).</p>

<p>Any help or ideas or whatever?</p>

<p>Thanks.</p>
