Gallery2 C# Server

qmnonic

Joined: 2008-11-10
Posts: 1
Posted: Mon, 2008-11-10 19:35

I am trying to implement a Gallery 2.x server application that accepts connections from any Gallery 2.x (or 1.x) client.

I am implementing this client in C# / ASP.NET .

1.x clients have no issues.

2.x clients seem to stall after login (or during login).

Through logs, I can see that the clients connect, passing the appropriate login information. My server responds with what looks like a correct response. However, the Gallery 2 client I am testing with (iPhoto) tries to login using both the 1.x login style (cmd=login) and 2.x login style (g2_form[cmd]=login), then stalls and does nothing.

Example response:

#__GR2PROTO__
server_version=2.11
debug_core_version=7,18
debug_module_version=1.0.9.1
status=0
status_text=Login successful.
debug_user=test
debug_time=0.052s
auth_token=swh0ygji2iy55re5gdjwizbg

What am I missing?
Cookies?
No-ops?
Is the auth_token or g2_authToken not generated properly (there are no docs identifying how this is generated now)?
Do I need to add an 'X-Powered-By: PHP/5.2.5' to the header?
Has anyone written a non-php server app? What problems or issues did you overcome.

Why does the gallery2 client stall and or not respond?

Any help would be greatly appreciated.