in reply to Re^4: Content-Disposition... odd behavior in IE
in thread Content-Disposition... odd behavior in IE

Ah. I was just copying an example from somewhere.

Really my experience with this kind of problem is that you keep trying variations that have worked for someone else and hopefully one of them finally does the trick.

Glancing at some code I have lying around the following definitely works with many people's copies of IE:

#! /usr/bin/perl -w use strict; use CGI; print CGI->header( -type => "application/vnd.ms-excel", -attachment => "example.xls", ); print "Salutation\tRecipient\nHello\tWorld\nGreetings\tEarthlings\n";
So if that doesn't work I can guarantee that the problem is specific to his copy of IE, and is not shared by IE in general.

Replies are listed 'Best First'.
Re^6: Content-Disposition... odd behavior in IE
by Rodster001 (Pilgrim) on Jan 14, 2009 at 19:31 UTC
    I just tested this on a few machines and works on some but not others.

    I agree 100% the problem is specific to a copy of IE (mine or otherwise). But, at best it's a crap shoot and I need more reliability than that.