This has been solved, it's a RIM issue.  See this thread for
details...

http://www.blackberry.com/developers/forum/thread.jsp?forum=1&thread=13498

The gist is "In the MDS directory, in config, there is a
rimpublic.property file. You need to change the AuthenticationSupport
to "false" "

enjoy

dan

On Apr 6, 3:43 pm, Daniel <[EMAIL PROTECTED]> wrote:
> Anyone successfully used the google API's on a blackberry via J2ME?
>
> I'm using RIM's JDE, and the ClientLogin Method.  I can get my
> authorization token fine, but when I try to make a GET request with
> that token, it never works.  Examination via wireshark of the packet
> seems to show that the "authorization" header actually gets eaten
> somehow by the RIM framework, as other header parameters do get set.
>
> Anyway, its very odd and I'm having no joy anywhere on the blackberry
> forums, so I'm hoping someone has actually done this before....
>
> The J2ME code is actually very trivial.
>
> c = (HttpConnection)Connector.open(url);
>
> // Set the request method and headers
> c.setRequestMethod(HttpConnection.GET);
> c.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/
> CLDC-1.0");
> String arg = "GoogleLogin auth="+this.m_authToken;
> c.setRequestProperty("Authorization",arg);
>
> // now execute the request by calling getResponseCode
> rc = c.getResponseCode();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to