CGI return of binary file

Posted on 1997-02-28
Last Modified: 2013-12-25
I need a perl script that will return a binary file and cause the client browser to default to a file name of my choice.  Currently I am using a shell script and can't get the file to default to anything but the name of the script.  I have seen netscape call a script 'pick.cgi' and I get prompted on my browser to save the file as 'program.exe'.  That is exactly what I want.


Question by:bowendk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

chump earned 50 total points
ID: 1827633
echo location:
This will return the binary file called program.exe, the browser will prompt to save this file as program.exe


Expert Comment

ID: 1827634
Sorry, with perl it's:

print "Location:", "\n\n";

Featured Post

Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

623 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