Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI download of XML gives error

Status
Not open for further replies.

PoledraDog

Programmer
Jun 30, 2004
1
US
I have a cgi script that downloads a file as an octet stream. The file itself can be of various formats/contents. In cases where it is an XML file that references a dtd file, I get the infamous message:
Some files can harm your computer. If the file information below looks suspicious, or you do not fully trust the soure, do not open or save this file

So far so good. If I click save, everything works fine.

However, if I hit *cancel*, and then go back and invoke the script again, I get an error stating that the dtd file (that the XML file I'm trying to download references) is not present.

Furthermore, the path it is looking for the dtd file in is not the path where the file I'm trying to download is. It is looking for the dtd file in the location of the cgi script on the server. I have no idea why this would be the case.

Any idea why this happens, or how I can get around it? This only happens in Internet Explorer (fully updated), not Netscape.

Any help would be greatly appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top