ruby & authToken
|
cedjo
Joined: 2007-02-27
Posts: 3 |
Posted: Tue, 2007-02-27 06:54
|
|
Hello, I'm trying to access my gallery via a simple ruby script: require 'net/http' the response is: #__GR2PROTO__ I never have a authToken parameter in the response of my script, any thought? I probably do something wrong but I don't really know what. the same url http://www.mysite.com/main.php?g2_controller=remote:GalleryRemote&g2_form[cmd]=login&g2_form[uname]=myname&g2_form[password]=mypassword #__GR2PROTO__ my gallery version is 2.2, ruby 1.8.5 |
|

Posts: 166
I can't really help you with Ruby specific stuff, but I had a similar issue trying to log in to a G2.2RC1 site using Delphi.
For me, the issue seemed to be the fact that my HTTP client object was not sending a KEEP-ALIVE header, I think. Therefore I assume Gallery doesn't think you're going to want to connect again in this session, so it doesn't send an auth_token.
Hopefully somebody with more knowledge of what Gallery is doing can clarify that.
And hopefully, that will give you some pointers to solve your issue.
Cheers,
Conor
Christchurch, NZ
GLoSS: Gallery2 Local Screen Saver & Desktop Changer
Posts: 3
I added the keep-alive parameter in my request and check the answer the connection is still keep-alive, but no authToken parameter given
Posts: 3
I've updated to 2-2rc2 and now it works!