• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting this ERROR HTTP_NOT_ACCEPTABLE (406)

 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
My mobile appliaction giving me HTTP status code HTTP_NOT_ACCEPTABLE (406)
While connecting to my webserver which is appache. Even i already add mime type to configuration file. ("application/octet-stream jar"). what is wrong with this can u please tell me
thanx
wating for reply.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try "application/java-archive" instead.
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,
"application/java-archive" is also there.
what else?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vishwas bhatt:
"application/java-archive" is also there.
Also? Maybe you should remove any other MIME type mappings for .jar files and see whether it helps.
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,
these are only two mime type associated with jar .....
now tell me what else we can do.
application/octet-streambin dms lha lzh exe class jar
application/java-archive jar
thanx for ur response
wating for reply.
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,

Problem is still there and meanwhile another query regarding this.
My application is connecting to'.php3" file. say "http:\\www.xyz.com\app\try.php3") and this file including a simple text file. (include function in php). i don't understatnd when i am requesting a simple text file through a ".php3" why i need to add "MIME TYPES" for this in my webserver.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vishwas bhatt:
these are only two mime type associated with jar .....
Yes, and the web server can only use one. The server may very well just pick the first one it finds from the MIME type mapping file and use that -- which would cause your handset to complain about not accepting files of type "application/octet-stream".
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,
I have jsut checked the sequence of "MIME TYPE" after getting reply.
First is
application/octet-streambin dms lha lzh exe class jar
Second is
application/java-archive jar
so according to ur logic first will be accepted and that is what we need.
now what else (
Thanx for all ur nice support
wating for reply.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the second ("application/java-archive") is what we need. Try removing "jar" from the "application/octet-stream" list. After doing this, do you still get the same error?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic