mIRC Home    About    Download    Register    News    Help

Print Thread
cookies #182443 09/08/07 05:21 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
when trying to download a file from one server with sockets in mirc i get connection closed coz server demands cookie to be given...

has anyone in past made a script that accepts cookies in this or simmiliar cases ?

(yes yes i searched on ms.org and mirc.net)


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: cookies [Re: WideOpenSpace] #182447 09/08/07 05:51 PM
Joined: Jul 2006
Posts: 3,588
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,588
http://scriptsdb.org/comments.php?id=635

Yes it's in french but maybe you can translate it in english :]


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: cookies [Re: Wims] #182451 09/08/07 06:25 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
well babelfish was of use :P

but there is nowhere put actually the final code
that works, only few tries that it seems went to hell :P


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: cookies [Re: WideOpenSpace] #182466 09/08/07 11:08 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
What I usually do when I can't make a socket connection work because of cookies or something else is to use IEWatch (an IE addon). It lets you view exactly what is sent to the site that you are visiting and that can make it much easier to mimic what's being sent when using sockets.

Beyond that, cookies come in different types. Some are always the same and you can hardcode the cookie information into your script. Others, such as those found on message boards when you are logged in change based on what the site sends to you and you have to get that information and adjust your "fake" cookie to match and then send that to the site.

Here is a thread where FiberOPtics created a way to log into a phpBB forum using sockets. It shows how he handled the second cookie type I mentioned, where it isn't a "static" cookie. It may help you.


Invision Support
#Invision on irc.irchighway.net
Re: cookies [Re: Riamus2] #182469 10/08/07 12:09 AM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
thanks for link
maybe i'll get something out of it ^^


The harder I chase my dreams the more I experience the time for smiles and tears...