Phoenix.pm: Perl CGI autodownload
Phaedrus
phaedrus at endless.org
Thu Sep 30 18:21:12 CDT 1999
Pablo..
List spam feels goooOoooOOOd =)
CGI.pm supposedly does all of the file upload stuff. If you search through
the man page/perldoc for: CREATING A FILE UPLOAD FIELD
You will find the details =) It looks spiffy though... it gives you a file
handle and everything...
but what *I* usualy use is CGIHTML, a C library for dealing with forms =)
http://slowass.net/documentation/web/cgihtml-1.69.tar.gz. (The docs are in
the same directory). However, there is no accounting for my tastes =)
I really like the college class on Perl idea. If there is anything I can
do to help, let me know, and I might just do it ;)
Unrelated topic: I'm open to and interested in small/medium programming
jobs (the paying kind), since I seem to have set down that road... anyone
with more work then they can handle is more then welcome to subcontract
stuff to me, or refer people to me =) Thanks!
cheers!
-scott walters
On Thu, 30 Sep 1999, Pablo Velasquez wrote:
> Date: Thu, 30 Sep 1999 14:27:38 -0700
> From: Pablo Velasquez <pablo at dosomething.org>
> Reply-To: phoenix-pm-list at happyfunball.pm.org
> To: phoenix-pm-list at happyfunball.pm.org
> Subject: Re: Phoenix.pm: Perl CGI autodownload
>
> Hi,
> Out of curiosity, I'm looking into an "upload" script now, any suggestions?
> Perhaps something you have used or one you downloaded and works well...
>
> I found a few so I'm looking at them...just wondering if anyone has any tips.
>
> Planning on uploading from a Windows machine to a Linux machine using
> Netscape 3.x or higher...
>
> Thanks!
>
> -Pablo
>
> At 04:57 PM 9/30/99 -0400, you wrote:
> >
> >Mark:
> >
> >Common problem. It's a Windows-ism. IE for the PC ignores the content type
> >header, and goes by the extention. However, Windows isn't too smart about
> >about being stupid, so you can fool it, like this:
> >
> >Have the download link, link to your cgi program, but pass, as the query
> >string, something like this:
> >makewindowshappy=fn.ppt
> >So the URL might be something like this:
> >/cgi-bin/downloader.cgi?makewindowshappy=fn.ppt
> >
> >Windows will see the '.ppt' extention on the URL, and use PowerPoint (if
> >the client has it on their system) if the user picks to 'Run' the
> >download.
> >
> >goodluck!
> >-scott walters
> >
> >
> >On Thu, 30 Sep 1999, Mark A. Sharkey wrote:
> >
> >> Date: Thu, 30 Sep 1999 10:13:18 -0700
> >> From: Mark A. Sharkey <mark at wcws.com>
> >> Reply-To: phoenix-pm-list at happyfunball.pm.org
> >> To: phoenix-pm-list at happyfunball.pm.org
> >> Subject: Phoenix.pm: Perl CGI autodownload
> >>
> >> Hello,
> >>
> >> Our Perl script successfully auto-downloads files for
> >> clients that use Netscape for a browser, or IE on a Mac for
> >> a browser. However, the script does not seem to work
> >> properly for IE4 on a Microsoft platform when trying to
> >> download non-text files.
> >>
> >> For example, the script cannot successfully download a
> >> PowerPoint file through the browser when using IE on
> >> Windows95.
> >>
> >>
> >> Does anyone have a snippet of code that will download
> >> various file types through the browser? Something similar
> >> to this (but actually works):
> >>
> >> print "Content-Disposition:
> >> attachment;filename=\"$file\";\n";
> >> print "Content-type: application/vnd.ms-powerpoint\n\n";
> >>
> >>
> >> Thanks.
> >>
> >>
> >> Mark
> >> --
> >> @--------------------------- at -----------------------@
> >> | Mark A. Sharkey | mailto:mark at wcws.com |
> >> | World Class Web Sites | http://www.wcws.com |
> >> | | 800 844 4434 |
> >> | Custom CGI Scripts | 480 461 9765 |
> >> | Perl PHP MySQL JavaScript | 480 461 9312 (fax) |
> >> @--------------------------- at -----------------------@
> >>
> >
>
More information about the Phoenix-pm
mailing list