[Gallery Remote protocole GR2_PROTO] Can't login even using authToken

anthony43
anthony43's picture

Joined: 2009-08-14
Posts: 22
Posted: Fri, 2009-08-14 22:58

Hello !
I'm trying to log in into my gallery, and I'm using curl to test the functionality (plain text HTTP client)
When I send :
curl -d g2_form[cmd]=login -d g2_form[uname]=g2android -d g2_form[password]=password -d g2_controller=remote:GalleryRemote http://g2.dahanne.net/main.php
The server returns :

#__GR2PROTO__
server_version=2.13
debug_core_version=7,54
debug_module_version=1.0.17
status=0
status_text=Login successful.
debug_user=g2android
debug_time=0,874s
auth_token=8e6d7d23e13d

Then when I send :
curl -d g2_controller=remote:GalleryRemote -d g2_authToken=8e6d7d23e13d -d g2_form[cmd]=fetch-albums-prune -d g2_form[protocol_version]=2.11 http://g2.dahanne.net/main.php
The server returns :

#__GR2PROTO__
debug_time_albumids=0,084s
status=0
album_count=0
status_text=No viewable albums.
debug_user=guest
debug_time=0,084s

It did not recognize that I was logged in !
Does anyone know what I'm doing wrong ?

Thank you in advance,
Anthony

G2Android : An open source Gallery2 client for the Android Platform, search for G2Android on the android market place or check it out at : http://code.google.com/p/g2android/