mIRC Home    About    Download    Register    News    Help

Print Thread
#214071 16/07/09 04:33 PM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
How to make bot stay open/connected on certain website?


There's if in LIFE

Rumieus #214074 16/07/09 07:49 PM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
/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
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
how about proxy?


There's if in LIFE

Rumieus #214097 17/07/09 10:16 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #214098 17/07/09 10:33 PM
Joined: Oct 2008
Posts: 36
Rumieus Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2008
Posts: 36
what do you mean?
how to add the command?

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

tq.


There's if in LIFE

Rumieus #214104 18/07/09 05:02 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard