mIRC Homepage
Posted By: kwell Connect to a page... - 04/10/14 06:34 AM
mirc may remotely add user and password to connect to a page ?


Any ideas?
Thank you!
Posted By: westor Re: Connect to a page... - 04/10/14 01:42 PM
What page are you trying to connect with username and password?
Posted By: kwell Re: Connect to a page... - 04/10/14 05:56 PM
imperiaonline.org
Let me know if mIRC can open a browser, enter the page and return the source code
Posted By: westor Re: Connect to a page... - 04/10/14 08:32 PM
This code will read the page you want then if you want any other reply to help.

Try using this code:

Syntax: /sockget <PAGE>
Example: /sockget http://www103.imperiaonline.org/imperia/game_v6/game/homepage.php?games=ok&ref=

Code:
alias sockget {
  if (!$1-) { echo -a ERROR: Enter the URL Page correctly! | return }
  ; example: /sockget http://mirc.com/versions.txt

  var %s = sockget_ $+ $rand(1,100000)
  if ($sock(%s)) { sockclose %s }
  var %site = $1-
  var %get_host = $chr(47) $+ $gettok(%site,3-,47)
  var %host = $gettok(%site,2,47)
  if ($right(%site,1) == $chr(47)) && ($right(%get_host,1) !== $chr(47)) { var -s %get_host = %get_host $+ $chr(47) }
  if (*https* iswm %site) { sockopen -e %s %host 443 }
  else { sockopen %s %host 80 }
  sockmark %s %get_host
}

ON *:SOCKOPEN:sockget_*: {
  if ($sockerr) { echo -a ERROR: SOCKOPEN -> $sock($sockname).wserr -> $sock($sockname).wsmsg | return }
  sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.0
  sockwrite -n $sockname Host: $sock($sockname).addr
  sockwrite -n $sockname User-Agent: */*
  sockwrite -n $sockname Connection: Close
  sockwrite -n $sockname
}

ON *:SOCKREAD:sockget_*: {
  if ($sockerr) { echo -a ERROR: SOCKREAD -> $sock($sockname).wserr -> $sock($sockname).wsmsg | return }
  var %read
  sockread %read
  if ($sockbr) { echo -ag READ: $left(%read,4096) }
}

ON *:SOCKCLOSE:sockget_*: { echo -ag SOCKET CONNECTION CLOSED! }
Posted By: kwell Re: Connect to a page... - 05/10/14 05:21 AM
The remote works perfect just send me the code for the home page

you may first connect using "user" " conraseƱa " and then send the code?

Sorry for my writing !
Posted By: westor Re: Connect to a page... - 05/10/14 01:09 PM
I am not sure that you can do that, first of all you must see if the website that you want to login support this, then you must read the website FAQ and see how you can do that and then go to mirc and code the way that the site accept the authentication.
© mIRC Discussion Forums