Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFContent with SSL - fails to connect

Status
Not open for further replies.

TheDrider

Programmer
Jun 27, 2001
110
US
We are having an interesting problem with some dynamic content. We are generating dynamic files (XLS and ZIP) and sending them to the browser using CFCONTENT.

Code:
<CFHEADER NAME="Content-Disposition" VALUE="attachment;filename=#defaultFile#">
<cfcontent file="#actualFilename#" deletefile="Yes" type="application/x-zip-compressed">

This works fine under normal conditions, but fails when we turn on SSL. With SSL turned on, I get a browser popup with the following error:

Code:
Internet Explorer cannot download "last half of the URL" from "servername".

Internet Explorer was not able to open this Internet site.  The requested site is either unavailable or cannot be found.  Please try again later.

Anyone have any ideas of what we've done wrong or what security settings we need to tweak?

Thanks.
 
This turns out to be a common problem when using SSL with IE6 and IIS.

I coded a download page to get the file and a test page to use it. The download page is simple:
Code:
<cfheader name="Content-Disposition"
        value="attachment;filename=Default.zip">
<cfcontent file="D:\InetPub\[URL unfurl="true"]wwwroot\Sample.zip"[/URL]
        type="application/x-zip-compressed">

My test page works correctly if I <cflocation> to my download page. The same code then FAILS if I <cfinclude> the file instead.

Code:
<!--- This works --->
<cflocation url="\test_redirect.cfm">

<!--- This fails (only one is uncommented at a time) --->
<cfinclude template="\test_redirect.cfm">

Seems like the No-Cache headers are somehow being added but we can't seem to intercept or prevent them. Does anyone know of a workaround short of going to Apache?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top