mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
when a user connects to a server they can use a password for say connecting to places like twitchtv but i have tried many ways and can`t seem to get my token socket to connect what is the correct way to connnect a socket to a server with password if anyone knows please.
Thanks

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
When you login to a website you're given a cookie (or cookies), you need to store this cookie and pass it on every request afterward. If using Chrome you can press ctrl+shift+i to bring up the network panel, this will allow you to view the header and post data when logging in. Recreate the request in mIRC with the appropriate fields.

You pass the cookies in the request as:
Cookie: cookie1=value1; cookie2=value2;

Joined: May 2013
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
on mirc itself u can connect like this to the twitch seerver
/server 199.9.250.229 6667 passwordhere -i usernamehere
so how would i get my socket to use same exact method to login

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You can see what mIRC is sending by opening a debug window: /debug @debug

Why are you using sockets to connect to an irc server?

Joined: May 2013
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
never thought of that and that worked i got it working now was sending pass and nick in wrong order thanks.
far as why would u wanna connect a socket to a server years ago people used to play socket bots a ton people just don`t use them like they used to is all.


Link Copied to Clipboard