I'm trying to pull information off of http://174.142.79.66:8278/index.html
However, whenever I try and access the site via sockets, I get a bunch of gobbly-gook streaming in, I assume this is the music being played. All I want is the text that I see in my browser.
Here's the code I'm using the currently produces the gobbly-gook.
Alias Radio {
sockopen Radio40 174.142.79.66 8278
;the below line is there to ensure that Mirc doesn't freeze up when it starts being hit by all the gobbly-gook
timer 1 2 sockclose Radio40
}
on 1:sockopen:radio40: {
window -e @radio
sockwrite -n radio40 GET / HTTP/1.1
;sockwrite -n $sockname User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
sockwrite -n $sockname Host: 174.142.79.66 $+ $crlf $+ $crlf
sockwrite -n radio40 Accept-Charset: text/html; charset=windows-1252
sockwrite -n $sockname User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
sockwrite -n $sockname Connection: Close
sockwrite -n $sockname $crlf
}
on *:sockread:radio40: {
sockread %radio40.temp
echo @radio %radio40.temp
}
Thanks