There were several issues with google authentication
1) The parameters needed to be encoded , i learnt it from the Java Client LOGIN APi provided by google. THe Java source had to be ported for use in j2me. As some java classes were not available in j2me.
2) Here is the response of a guy from google. Who helped me find the problem
related with j2me.
Please remove the outputStream.flush() call. This call will cause
some j2me-enabled devices to use chunked encoding on the POST. The
ClientLogin service does not seem to like chunked encoding.
3) How he detected the bug
Used the POST being generated by this j2me program and used it
along with 'openssl s_client' and curl to investigate and perform some
trial and error. This led to the discovery of the chunked encoding
problem-- a quick search on the web led to the removal of the flush()
as a solution.
Sunday, April 8, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment