mIRC Home    About    Download    Register    News    Help

Print Thread
#182443 09/08/07 05:21 PM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
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)

WideOpenSpace #182447 09/08/07 05:51 PM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
http://scriptsdb.org/comments.php?id=635

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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #182451 09/08/07 06:25 PM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
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

WideOpenSpace #182466 09/08/07 11:08 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.

Riamus2 #182469 10/08/07 12:09 AM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
thanks for link
maybe i'll get something out of it ^^


Link Copied to Clipboard