getHeaderField("WWW-Authenticate") giving improper value in J2ME

Posted by kehers on Stack Overflow See other posts from Stack Overflow or by kehers
Published on 2011-01-31T07:24:03Z Indexed on 2011/01/31 7:25 UTC
Read the original article Hit count: 127

Filed under:

I'm building a client for an api that uses http digest access authentication for authentication. I have studied the rfc to know the setup the required response headers and this works well on my emulator. Problem however is when I test on my phone (nokia E5), I found out that getting the www-authenticate header from the returned headers doesnt get the full value [code] // c = (HttpConnection) Connector.open(url) and other declarations String digest = c.getHeaderField("WWW-Authenticate"); System.out.println(digest); // gives only: Digest //no realm, qop and others [/code] I'm I doing something wrong or it is from the phone? What are my other options?

© Stack Overflow or respective owner

Related posts about java-me