This sample page popups right up in my web browser:
http://www.kmart.com/tvs-electronics-car-electronics-car-gps-systems/b-1231486124 But my mirc remote script connection is caught up by a 301 redirect...
alias PriceCheck { sockclose PriceCheck | sockopen PriceCheck kmart.com 80 }
alias -l sw { if ($sock($1)) && ($sock($1).status = active) { sockwrite -nt $1- } | else { echo -s * PriceCheck: $sock(PriceCheck).status | .timerrePriceCheck 1 9 PriceCheck } }
on *:sockopen:PriceCheck:{ sw $sockname GET $+(/tvs-electronics-car-electronics-car-gps-systems/b-1231486124 HTTP/1.1,$lf,Host: kmart.com,$str($crlf,2))) }
on *:sockread:PriceCheck:{ sockread -fn &PriceCheck | var %v = $bvar(&PriceCheck,1,$bvar(&PriceCheck,0)).text | echo -s * %v }
* HTTP/1.1 301 Moved Permanently
* Date: Tue, 27 Aug 2013 02:19:23 GMT
* Location:
http://www.kmart.com/tvs-electronics-car-electronics-car-gps-systems/b-1231486124* Content-Length: 289
* Content-Type: text/html; charset=iso-8859-1
*
* <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
* <html><head>
* <title>301 Moved Permanently</title>
* </head><body>
* <h1>Moved Permanently</h1>
* <p>The document has moved <a href="http://www.kmart.com/tvs-electronics-car-electronics-car-gps-systems/b-1231486124">here</a>.</p>
* </body></html>
...please show me how to correct my code to redirect and read the source of the page my browser sees.