Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

problem downloading from site on apache server

Posted on 2004-07-31
6
Medium Priority
?
223 Views
Last Modified: 2010-03-04
i have a website and i put a java jad file
when i try to download this file from my mobile it is not downloaded instead i get the text the file contains dispayed on the screen

and when i try to download the java jar file i get this error
"one or more problems were found in this document.It cannot be displayed properly"

Thanks
0
Comment
Question by:omashhour
  • 3
  • 3
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11687571
which Content-Type is set by the server? Does your client know how to handle this Content-Type?
0
 
LVL 1

Author Comment

by:omashhour
ID: 11687655
what is meant by content type  can u tell me please because im still a beginner with the apache server
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 750 total points
ID: 11689311
Content-Type is what the web server (apache) writes in the HTTP response header, it tells the client (your browser) how to handle following data
in your httpd.conf you need to have something like:
    AddType application/x-httpd-jad .jad

then your browser need sto know what to do with this
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 1

Author Comment

by:omashhour
ID: 11689512
ok can u give me the other line to add for jar please
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11692222
AddType application/x-httpd-jar .jar
0
 
LVL 1

Author Comment

by:omashhour
ID: 11693956
i did that before
but it didnt work thats why i was asking u for the content types
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question