That code looks like it should work. A couple things though:

You should use HTTP/1.0 in mIRC sockets, otherwise the server will send in bursts, and you will get strange numbers in your data.

To test if the connection is working, add an echo where you have:
; handling here.

Something like this:
echo 5 -s > %temptext

That should echo the entire contents of the website to the status window.

-genius_at_work