mIRC Home    About    Download    Register    News    Help

Print Thread
#214071 16/07/09 04:33 PM
R
Rumieus
Rumieus
R
How to make bot stay open/connected on certain website?

#214074 16/07/09 07:49 PM
Joined: Feb 2003
Posts: 306
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 306
/sockopen name ip_or_name(don't use http://) port

You can make a connection but all servers will cut you off after around 300s of inactivity.
If you download or upload something, them the connection will stay alive.

Have a read at the protocol.

http://www.w3.org/Protocols/rfc2616/rfc2616.html

regards

Last edited by tontito; 16/07/09 07:51 PM.
tontito #214094 17/07/09 08:11 PM
R
Rumieus
Rumieus
R
how about proxy?

#214097 17/07/09 10:16 PM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
You have to support a proxy connection manually yourself, mIRC has no inherent support. This means reading about the HTTP/SOCKS4/SOCK5 proxies. Afaik HTTP proxies are pretty simple.

argv0 #214098 17/07/09 10:33 PM
R
Rumieus
Rumieus
R
what do you mean?
how to add the command?

example to connect proxy to irc, CONNECT server:port
how about website?

tq.

#214104 18/07/09 05:02 AM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Like I said, you have to follow the correct proxy protocol you want to use to use and send the right data to the proxy server yourself in order to do this with sockets. You can google for the SOCKS4/5 proxy specification or the HTTP one (which is way easier for http connections). I don't have any examples off hand, but it should be as simple as sending the full URL in your GET/POST request for an HTTP proxy.


Link Copied to Clipboard