This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Grab info from passwd protected page (cookies/php)

Old posts that have not been replied to for several years.
Locked
n
nidoh
Voice
Posts: 2
Joined: Fri Mar 04, 2005 9:52 am

Grab info from passwd protected page (cookies/php)

Post by nidoh »

Please help i am going a bit mad with this :)

I have a bot, with this bot I can quite happily go out and grab web pages and format them as i choose.

However the site I really want to get information from uses a cookie system to access each page. What i basically want to do is how do i send a cookie login information from my script?

Here is what i have been trying...

set login [::http::formatQuery uid=1322 pass=9b11466dd5d0253533da7d ]

set tok2 [::http::geturl http://www.X.com/userlist.php -query $login]

This returns nothing :(

if i take away the -query and use a non passworded page, script works fine.


I have been searching for long time now and cant find anything to help me.


Thanks in advance


Nidoh
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

http://www.w3.org/Protocols/rfc2109/rfc2109

On this page the cookie management is defined, maybe it helps you.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
n
nidoh
Voice
Posts: 2
Joined: Fri Mar 04, 2005 9:52 am

Post by nidoh »

Not much.

I am not a scripting god or anything and certainly cant write one from the specs of the protocol :(
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

You didn't say what kind of password protection. You need to add the approptiate headers using the -headers option (not -query)
http://tcl.tk/man/tcl8.5/TclCmd/http.htm#M19
http://wiki.tcl.tk/3828
http://wiki.tcl.tk/6087
Have you ever read "The Manual"?
Locked