Posted by cheewe on July 15, 2012 at 12:41am
I'm accessing the user.login service via json server from an iPad application. It appears that when it is successful, the web service returns the HTML of the home page, and when it does not, it returns a valid JSON string that provides the error message.
Is this the expected behavior? Or is it my set-up or configuration somewhere. Thanks!
Comments
Something wrong here !
Hi cheewe !
When you use the user.login service. If the username and password is correct it will return the user information data ( in json format if you use the json data for return data, not the html file) and the error data(json also) if the loging is fail.
Do you mind sending the HTML file that you received. We'll find out the problem.
Drupal - The modern Lego game
Related to home page redirect?
Using a different way of connecting via drupal-sdk and services 3.x/plist server support, I am getting a HTTP/1.1 302 when it succeeds and Authentication Needed when it fails.
I think it has got to do with these:
http://drupal.org/node/1141356
http://drupal.org/node/493932