December 6th, 2004, 05:22 PM
Using script to access password page
I would like to make my script access a password protected page for me and use CookieClient to save the cookies so next time I use it I would already be logged in. How would i do this?
December 6th, 2004, 06:04 PM
Whatever the language is you are using (python, perl or php etc)...
Your code would read the CGI environment variables and check the the existance of the cookie.
If the cookie exists you print out the logged in page (or redirect to the logged in page).
If the cookie is not there then you print the login page.
Some useful links:
CGI tutorials by Google
I liked the cookie script here:
December 6th, 2004, 06:06 PM
could you please show me some sample code?
December 7th, 2004, 02:20 AM
Did you take the time to look at those links? Everything you need is there.
#some sample code
print 'check out the links...'
December 7th, 2004, 07:05 PM