<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl CGI using apache server. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893410#M844302</link>
    <description>Hi Pete,&lt;BR /&gt;You had it right!  It works perfectly.  I had a typo in my code.  Adding the line: "application/zip dat zip" to the mime.types file does the trick.  I wouldn't have found that in a million years.  &lt;BR /&gt;One last queston then:  Is there perhaps an alternative way that would not affect other applications?  That is, can I add something to the httpd.conf file that would pertain only to applications that, for example, run from a particular directory or some such thing?&lt;BR /&gt;Thanks much for your help.&lt;BR /&gt;Greetings,&lt;BR /&gt;Andy&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Mar 2005 04:16:25 GMT</pubDate>
    <dc:creator>Andy Nicastro</dc:creator>
    <dc:date>2005-03-31T04:16:25Z</dc:date>
    <item>
      <title>Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893404#M844296</link>
      <description>Hi,&lt;BR /&gt;After creating an ASCII data file from within a browser application programmed in Perl CGI, I want the user to be able to save it. I am, therefore, trying to get the "File Download" popup to appear.&lt;BR /&gt;====&lt;BR /&gt;After creating the file in the apache server's /tmp/ diectory as defined in httpd,.conf, I use&lt;BR /&gt;=====&lt;BR /&gt;print "Content-Type: 'plain/text'; filename=\"$filename\"\n".&lt;BR /&gt;        "Content-Disposition: inline; filename=\"$filename\"\n\n";&lt;BR /&gt;======&lt;BR /&gt;When I Open the file and read it, it writes to the browser instead of giving me the "File Download" popup. &lt;BR /&gt;=====&lt;BR /&gt;I can get it to work correctly if I first zip the file, but I'd like to give the user the option of not zipping it.&lt;BR /&gt;=====&lt;BR /&gt;Do you have any ideas?&lt;BR /&gt;Thanks very much,&lt;BR /&gt;Andy Nicastro&lt;BR /&gt;Publtec B.V.&lt;BR /&gt;a.nicastro@publitec.nl</description>
      <pubDate>Wed, 30 Mar 2005 04:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893404#M844296</guid>
      <dc:creator>Andy Nicastro</dc:creator>
      <dc:date>2005-03-30T04:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893405#M844297</link>
      <description>Andy,&lt;BR /&gt;can the users not just use the right mouse button then save as?!&lt;BR /&gt;Or even right-click the link and save as.&lt;BR /&gt;Otherwise every document with the type 'plain/text' will bring up the pop-up.&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2005 05:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893405#M844297</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-03-30T05:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893406#M844298</link>
      <description>Hi,&lt;BR /&gt;Thanks for the very prompt reply.&lt;BR /&gt;Your solution is not an option because the format of the file changes when it comes into the browser (these are SQL*Loader files and their format must be preserved).  In this application, it would not be a problem if every plain/text file caused the "File Download" popup to appear, but I cannot get the application to do this.  Do you have any suggestions?&lt;BR /&gt;Thanks again.&lt;BR /&gt;Andy</description>
      <pubDate>Wed, 30 Mar 2005 06:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893406#M844298</guid>
      <dc:creator>Andy Nicastro</dc:creator>
      <dc:date>2005-03-30T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893407#M844299</link>
      <description>Andy,&lt;BR /&gt;in the conf directory there should be a mime.type file.&lt;BR /&gt;Can you add the filename extension to the entry that contains the zip entry.&lt;BR /&gt;ON our machine:&lt;BR /&gt;before&lt;BR /&gt;text/plain                      asc txt&lt;BR /&gt;application/zip                 zip&lt;BR /&gt;after&lt;BR /&gt;text/plain                      asc&lt;BR /&gt;application/zip                 txt zip&lt;BR /&gt;So all files with a filename extension of txt should now use the popup.&lt;BR /&gt;NB. You have to stop and start the httpd.&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 30 Mar 2005 06:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893407#M844299</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-03-30T06:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893408#M844300</link>
      <description>Hi,&lt;BR /&gt;Thanks again for the speedy reply.&lt;BR /&gt;This is what I tried:&lt;BR /&gt;1. In order to mimic your instructions exactly, I changed the extension name of the file from "dat" to "txt" in my code.&lt;BR /&gt;2. In the mime.types file I added one line AFTER â  text/plain     asc txtâ  , namely&lt;BR /&gt;the line â  application/zip      txt zipâ  &lt;BR /&gt;Please note that the line â  application/zip        zipâ   already existed above â  text/plain                      asc txtâ   in mime.types.&lt;BR /&gt;3. Restarted the apache server.&lt;BR /&gt;4. Tried the application.  &lt;BR /&gt;Still it writes the data to the browser rather than putting up the â  File downloadâ   popup.&lt;BR /&gt;The first line that appears in the browser is the result of the Perl print command, that is:&lt;BR /&gt;â  Content-Type: "plain/text"; filename="CODE_LIBRARY_MAP.txt" Content-Disposition: inline; filename="CODE_LIBRARY_MAP.txt"&lt;BR /&gt;======&lt;BR /&gt;Any other ideas that I could try?&lt;BR /&gt;Your help is m</description>
      <pubDate>Wed, 30 Mar 2005 07:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893408#M844300</guid>
      <dc:creator>Andy Nicastro</dc:creator>
      <dc:date>2005-03-30T07:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893409#M844301</link>
      <description>Andy,&lt;BR /&gt;you should have only one definition for txt in the file!&lt;BR /&gt;I have tried the reverse on our server, renaming a file to the .zip extension and it came up with the popup.&lt;BR /&gt;So not sure what the difference is.&lt;BR /&gt;Perhaps somebody else will come up with a clarification.&lt;BR /&gt;&lt;BR /&gt;Sorry,&lt;BR /&gt;Pete&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2005 08:00:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893409#M844301</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-03-30T08:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893410#M844302</link>
      <description>Hi Pete,&lt;BR /&gt;You had it right!  It works perfectly.  I had a typo in my code.  Adding the line: "application/zip dat zip" to the mime.types file does the trick.  I wouldn't have found that in a million years.  &lt;BR /&gt;One last queston then:  Is there perhaps an alternative way that would not affect other applications?  That is, can I add something to the httpd.conf file that would pertain only to applications that, for example, run from a particular directory or some such thing?&lt;BR /&gt;Thanks much for your help.&lt;BR /&gt;Greetings,&lt;BR /&gt;Andy&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 04:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893410#M844302</guid>
      <dc:creator>Andy Nicastro</dc:creator>
      <dc:date>2005-03-31T04:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893411#M844303</link>
      <description>Andy,&lt;BR /&gt;that's good news, because I couldn't understand why it would not work on your system.&lt;BR /&gt;As far as I know, you can not change the behaviour of the mime.type on a directory basis. I mentioned that in my initial answer.&lt;BR /&gt;Sorry.&lt;BR /&gt;Hope this at least solved your initial question.&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 31 Mar 2005 04:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893411#M844303</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-03-31T04:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893412#M844304</link>
      <description>Hi Pete,&lt;BR /&gt;Yes it has.  And I thank you much.&lt;BR /&gt;Greetings,&lt;BR /&gt;Andy</description>
      <pubDate>Thu, 31 Mar 2005 04:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893412#M844304</guid>
      <dc:creator>Andy Nicastro</dc:creator>
      <dc:date>2005-03-31T04:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893413#M844305</link>
      <description>Andy,&lt;BR /&gt;One POSSIBLE solution I thought of was to create a new extension and add it to the mime file. That would then not affect the rest of your system. It would not be based on the directory, but at least you can control the behaviour via the filename extension.&lt;BR /&gt;&lt;BR /&gt;If you are happy with the solution, can you please identify which answered the question and close the thread.&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 31 Mar 2005 05:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893413#M844305</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-03-31T05:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl CGI using apache server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893414#M844306</link>
      <description>Peter Gordon has supplied a good solution and did so very quickly.&lt;BR /&gt;Thanks,&lt;BR /&gt;Andy</description>
      <pubDate>Thu, 31 Mar 2005 05:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-cgi-using-apache-server/m-p/4893414#M844306</guid>
      <dc:creator>Andy Nicastro</dc:creator>
      <dc:date>2005-03-31T05:24:53Z</dc:date>
    </item>
  </channel>
</rss>

