すみません、間接的にしかお答えできません。Google アカウントを使用して、appspot.com のアプリにログインすることができます。いくつかの Cookie を保持したり、複数のサーバーがあなたをバウンスしたときに接続したりするなど、ブラウザーが行うすべてのことを行う必要があります。
私は数ヶ月前に失敗に終わったプロジェクトでこれをいじり、ログインするために主に cURL を実行するシェル スクリプトに行き着きました。
#!/bin/bash
my_app="set-this-to-my-app-id"
url="http://$my_app.appspot.com"
curl='curl --cookie-jar cookies'
if [ -z "$EMAIL" -o -z "$PASS" ]; then
echo -n 'Email: '
read EMAIL
echo -n 'Pass: '
read PASS
fi
rm -f cookies auth
echo 'Login'
$curl https://www.google.com/accounts/ClientLogin --output auth \
-d "Email=$EMAIL" -d "Passwd=$PASS" \
-d accountType=HOSTED_OR_GOOGLE \
-d source=$my_app \
-d service=ah
. auth # XXX Be careful here. The output of the above
# command happens to be Bash syntax too!
rm -f auth
echo 'Logging into app and getting cookie'
$curl "$url/_ah/login?continue=$url/console/&auth=$Auth"
echo
echo 'Example POST query'
$curl -X POST --cookie cookies "$url/some/path" -d 'foo=bar'
echo
rm -f cookies