Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 8th, 2000, 02:21 PM
Jimmy- Jimmy- is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 0 Jimmy- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This isn't really a question pertaining to perl, but I figured someone from this forum may have run into this problem before. Basically, I'm trying to send a file that resides in a directory that is not known to the webserver. So, what I did was, I just read the entire file (which is gzipped) into a scalar, then printed out the http headers, then just printed out the scalar which holds the contents of the file. This works in sending the file, however the file is not named correctly. I am using the "Content-Disposition" header to specify the filename, but for some reason, Internet Explorer puts a '[1]' in the filename. So, for instance, the filename is 'filename.sh.gz', but IE sees it as 'filename[1].sh.gz'.

Thanks in advance to anyone who might be able to shed some light on this.

P.S. I am open to other suggestions as to how to send the file. However, I cannot use Apache's access restriction mechanism (via .htaccess) as there is already a site-wide access restriction mechanism in place, and forcing users to enter an initial password to log into the site, then yet another password to download the files they need, would probably not make the users very happy :-( Thanks again ...

Reply With Quote
  #2  
Old December 8th, 2000, 03:43 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
You might be able to find an easier way of doing it using MIME::Tools. Just a thought though.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Printing 'Content-Disposition' header does not yield desired result.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway