Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CGI return of binary file

Posted on 1997-02-28
2
Medium Priority
?
279 Views
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.

Thanks.

Don;
0
Comment
Question by:bowendk
[X]
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
2 Comments
 
LVL 1

Accepted Solution

by:
chump earned 150 total points
ID: 1827633
Use
echo location: ftp://ftp.site.com/program.exe
echo
echo
This will return the binary file called program.exe, the browser will prompt to save this file as program.exe

0
 
LVL 1

Expert Comment

by:chump
ID: 1827634
Sorry, with perl it's:

print "Location: ftp://ftp.site.com/program.exe", "\n\n";
0

Featured Post

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

722 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