mIRC Home    About    Download    Register    News    Help

Print Thread
$sock #65919 29/12/03 06:12 PM
Joined: Jan 2003
Posts: 45
R
rela Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Jan 2003
Posts: 45
Is there any way to get the URL your socket is connected to ?
Like surfing to a site which will redirect you to another, then I want to get that second URL.
Thx anyway for any help...


@#botwars @Kreynet
Re: $sock #65920 06/01/04 11:57 AM
Joined: Jan 2004
Posts: 26
M
module Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 26
You could use DNS to resolve the current IP your socket is connected. For redirects you'll have to use the ON SOCKREAD event and parse the results, extracting the redirect URL and open another socket to it or close the current socket and open another socket to it.


It's not in the GUI, it's in the source.