views:

49

answers:

0

I have an applet working with a JAR file. When the JVM sends the request to the webserver for the JAR file, it adds to the request the existing domain cookies. However, one of these cookie is encoded, and on Firefox with Iplanet (webserver), it prevents the jar from being downloaded (server returns error 400).

Below the HTTP request (as given by Charles HTTP Proxy) for Firefox and Chrome. We can see that some characters differ for the aria_user_profile cookie.

Not working - FF
----------------------
GET /LocalPrinting.jar HTTP/1.1
content-type: application/x-java-archive
User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_21
Host: nceetvdev58-11.nce.XXXX.net
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Cookie: aria_user_profile={DS?!,!C!"ÍÔaÃæK?9eä|IC¦?!A:i?!?!7æâ!A7!*EÄ!,B¥È!8*0dà!4????ræÐq!6¦M!??"Z²!-!7s

Working - chrome
----------------------
GET /LocalPrinting.jar HTTP/1.1
accept-encoding: pack200-gzip, gzip
content-type: application/x-java-archive
User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_21
Host: nceetvdev58-11.nce.XXXX.net
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Cookie: aria_user_profile={DÀ?SÆ?!,!C!"ÍÔaÃæK?9eä|IC¦?!A:i̤!?!7æâ!A7!*EÄ!,B¥È!8*0dà!4Ñ????ræÐq!6¦M!??"Z²!-!7sfÍ?-ÏT¤(çf!E

Is there a solution to this, by setting an encoding on the applet tag for instance?

Also posted at: http://forums.sun.com/thread.jspa?threadID=5449223