Not sure if I am doing this right, this is my first try at using sockets. All im trying to do is get it to echo back to me the billboard new releases. I am not sure if it is my script that has the problem or if it is the site that i am trying to access. This is what I have so far
Code:
alias sockettest {
  sockopen toplist www.billboard.com 80
}
on *:SOCKOPEN:toplist: {
  sockwrite -nt $sockname post www.billboard.com/bbcom/releases/releases_display.jsp?rollDate=0
  sockwrite -nt $sockname HOST: billboard.com $+ $crlf $+ $crlf 
  sockwrite -nt $sockname Accept-Language: en-us
  sockwrite -nt $sockname User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
}
on *:SOCKREAD:toplist: {
  if ($sockerr) {
    echo -s SockError $sockname $sockerr
    return
  }
  else {
    var %temptext
    sockread %temptext
    echo -a %temptext
  }
}

and this is what i get echoed back to me
Quote:
HTTP/1.0 400 Bad request
Content-Type: text/html
* /echo: insufficient parameters (line 18, sockettest.mrc)
<h2>Bad request</h2>

This webpage i am trying to echo is www.billboard.com/bbcom/releases/releases_display.jsp?rollDate=0
As I said not sure if it is me or the site. Thanks