mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2013
Posts: 24
Z
Zabache Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Jun 2013
Posts: 24
In trying to assemble a list of manufacturer's that look the otherway on piracy. I wrote this remote script connection to track the most popular pirated games. But this proven method is failing to make first contact here. Any ideas why this:
Code:
alias Check { sockclose Check | sockopen Check kat.cr 80 }
alias -l sw { if ($sock($1)) && ($sock($1).status = active) { sockwrite -nt $1- } | else { echo -s * Check: $sock(Check).status | .timerreCheck 1 9 Check } }
on *:sockopen:Check:{ sw $sockname GET $+(/games/?field=seeders&sorder=desc HTTP/1.1,$lf,Host: www.kat.cr,$str($crlf,2))) }
on *:sockread:Check:{ sockread -fn &Check | var %v = $bvar(&Check,1,$bvar(&Check,0)).text | echo -s * %v }


Isn't reading this: https://kat.cr/games/?field=seeders&sorder=desc

But rather only resulting in this:
Code:
* HTTP/1.1 301 Moved Permanently
* Server: nginx
* Date: Sat, 31 Oct 2015 02:03:13 GMT
* Content-Type: text/html
* Content-Length: 178
* Connection: keep-alive
* Location: http://kat.cr/games/?field=seeders&sorder=desc
*
* <html>
* <head><title>301 Moved Permanently</title></head>
* <body bgcolor="white">
* <center><h1>301 Moved Permanently</h1></center>
* <hr><center>nginx</center>
* </body>
* </html>


and it's nothing to do with your lack of knowledge about binvars... but rather i expect purely based on the sockopen and my lacking there

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You're requesting www.kat.cr and they're redirecting you to kat.cr

Joined: Jun 2013
Posts: 24
Z
Zabache Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Jun 2013
Posts: 24
Sorry, not seeing the resolution.

I change... Host: www.kat.cr
to... Host: kat.cr

Same outcome. Could you clarify please?

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
No it's not, that redirects you again to https

So you need to sockopen -e to port 443


Link Copied to Clipboard