I don’t even know if there are Coldfusion programmers here…
Trying to save a PDF.
works fine in Firefox anywhere.
only work with Internet Explorer if I’m on the same network as our servers.
I can take the same box and bounce between 2 networks at the office and it only works if I’m on the one network. Fails outside of the building as well so I’m ruling out any security settings on the second network in office.
<cfsavecontent variable="testdata">
Test information
</cfsavecontent>
<cfheader name="Pragma" value="public">
<cfheader name="Expire" value="0">
<cfheader name="Cache-Content" value="must-validate,post-check=0,pre-check=0">
<cfheader name="Content-type" value="application-download">
<cfheader name="Content-Length" value="#len(testdata)#">
<cfheader name="Content-Disposition" value="attachment; filename=test.pdf">
<cfheader name="Content-Transfer-Encoding" value="binary">
<cfdocument format="PDF"><cfoutput>#testdata#</cfoutput></cfdocument>
I keep trying different combinations of headers trying to find something that might work but I’m getting nowhere.
Continue reading »