|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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|; =========================================================== |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Content Types and IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|