i got a little problem with retreiving a webpage via mirc to be parsed after its finished downloading.

when i try having mirc retreive the page, it keeps saying site not found, but when i take the URL and put it into IE, it goes right to the page. the code follows.

Code:
alias amg {
  if (artist iswm $1) { set %type 1 }
  elseif (album iswm $1) { Set %type 2 }
  elseif (song iswm $1) { Set %type 3 }
  elseif (styles iswm $1) { Set %type 5 }
  elseif (label iswm $1) { Set %type 4 }
  set %query $2-
  sockopen amg allmusic.com 80
}

on *:sockopen:amg:{
  sockwrite -n $sockname GET $+(/cg/amg.dll?p=amg&opt1=,%type,&sql=,%query) HTTP/1.0
  echo -s attemping to open a connection to $+(http://www.allmusic.com,$+(/cg/amg.dll?p=amg&opt1=,%type,&sql=,%query))
  sockwrite -n $sockname User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
  echo -a User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname Accept */*
  sockwrite -n $sockname Host: allmusic.com
  sockwrite -n $sockname $crlf
}

on *:sockread:amg:{
  sockread %amg-temp
  window -k @AMG_PARSER
  aline @AMG_PARSER %amg-temp
  echo -a Bytes Sent so far:  $sock(amg).rcvd
}

its supposed to connect to allmusic and retreive the info of the song/album/artist/lable/or style .. i know i got the url right, cause it works in IE, just cant get mirc to use socket on it and put it into a @window.


if yall could lookie over my code, i would appreciate it and tell me what i screwed up smile

====
edit: fixed a small typo, still dont work

Last edited by keeker; 10/09/03 06:48 PM.

keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.