2008-04-02 19:56:40 |
Daniel Hahler |
description |
There should be an easy way to setup the cookie file, especially since Firefox 3 now stores them in a SQLite database.
I've found an easy way on https://wiki.ubuntu.com/SponsorshipProcess/ppaput:
curl -b ~/.lpcookie -c ~/.lpcookie -d loginpage_email=<yourLPemailHere> -d password=<yourLPpasswdHere> https://edge.launchpad.net/+login
bughelper could add an option (--gen-cookie), which would emulate the above command, asking the user for his launchpad email and password. |
There should be an easy way to setup the cookie file, especially since Firefox 3 now stores them in a SQLite database.
I've found an easy way on https://wiki.ubuntu.com/SponsorshipProcess/ppaput:
curl -b ~/.lpcookie -c ~/.lpcookie -d loginpage_email=LAUNCHPAD_EMAIL -d loginpage_password=LAUNCHPAD_PASSWORD -d loginpage_submit_login=1 https://edge.launchpad.net/+login
(NOTE: this makes the password visible in the process list and shell history! You can remove it from the latter though, e.g. ~/.bash_history)
bughelper could add an option (--gen-cookie), which would emulate the above command, asking the user for his launchpad email and password, then posting those to the LP +login page and creating a cookie file based on the Cookie header received from LP. |
|