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:
  #1  
Old April 30th, 2001, 10:04 PM
bumperbox bumperbox is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Tauranga, NZ
Posts: 349 bumperbox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Here is what I want to do

1. Download file1
2. Download file 2
3. Display Success Message

It works fine with Netscape, but I'm having trouble with IE
IE doesn't seem to detect the boundaries and downloads the whole lot as one file

Have I got the correct content types/boundaries ?

I'd appreciate any help you can give me


This is my code

===========================================================
print qq|Content-Type: multipart/mixed; boundary="UNIQUE FILE BOUNDARY"\n\n|;
print qq|\n--UNIQUE FILE BOUNDARY\n|;
print qq|Content-Type: application/octet-stream\n|;
print qq|Content-Disposition: attachment; filename="file2"\n\n|;

[file 1 contents]

print qq|\n--UNIQUE FILE BOUNDARY\n|;
print qq|Content-Type: application/octet-stream\n|;
print qq|Content-Disposition: attachment; filename="file2"\n\n|;

[file 2 contents]

print qq|\n--UNIQUE FILE BOUNDARY\n|;
print qq|Content-Type: text/html\n\n|;

print "Download Complete";

print qq|\n--UNIQUE FILE BOUNDARY--\n|;
===========================================================

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Content Types and IE


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 2 hosted by Hostway
Stay green...Green IT