File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes war file download has bad mime type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "war file download has bad mime type" Watch "war file download has bad mime type" New topic

war file download has bad mime type

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
See below HTTP log. Basically, this causes issues with using lynx or curl on servers when downloading directly for an install.



GET /download_file.jsp?type=war HTTP/1.1
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv: Gecko/2009032608 Firefox/3.0.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: jsessionid=gcmhbl8f2omv.jetty1; __utma=45548415.850760579.1240883063.1240883063.1240883063.1; __utmb=45548415; __utmc=45548415; __utmz=45548415.1240883063.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

HTTP/1.x 302 Found
Date: Tue, 28 Apr 2009 02:02:31 GMT
Content-Type: text/html
Content-Length: 0
Server: Jetty(6.1.11)

[originally posted on by javafueled]
I agree. Here's the link:
subject: war file download has bad mime type
It's not a secret anymore!