Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

HF EJB Code Examples JAR Has Wrong MIME Type

 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is causing a minor problem for standards compliant browsers like Mozilla and FireFox... With those, you have to right click and "Save Target As..."

The above headers are returned when the server is issued a HEAD coomand for the JAR file.
I used my own utility that I wrote 4+ years ago:
http://www.geocities.com/~tony-alicea/JGetHttpHeader.html
[ February 11, 2004: Message edited by: Tony Alicea ]
 
Tony Alicea
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "Content-type" should be:

This is usually defined in the file mime.types.
Or better still, just rename to ZIP instead of JAR!
[ February 12, 2004: Message edited by: Tony Alicea ]
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic