Entries Tagged as 'IIS'

Microsoft Office 2007 MIME Types with Apache and IIS

Apache , IIS , Misc , MS Office , Server and Hosting 5 Comments »

 

I was working with a 3rd Party file service \ handling provider and came across an issue whereby when I uploaded a Microsoft Office 2007+ document the "detected MIME type" was being returned as "application/zip".

Turns out there's an easy enough fix for this for their servers.  Simply update the web server to include the new \ incorrect MIME types. 

 

Read more...

<cfhttp/> Connection Failure

ColdFusion , Gotchas , IIS , Misc , Server and Hosting 1 Comment »

I was working on calling a remote template via <cfhttp /> recently and was experiencing a Connection Failure Error.

Scratching my head I proceeded to inspect what was going on in my code and on the wire with Firebug. 

At first I thought I had resolved the issue when I discovered my return type was a complex value (struct) but my elation was quickly drowned by the "CTRL+F5" key combination :-(

Without any luck I decided to consult the WWW.

After a quick search I discovered that it was due to the reponse being Compressed from IIS.  Apparantly the HTTPCompression algorithm used by some versions of IIS is incompatible with ColdFusion (Java).

Workaround

The work-around was to specify additional HTTP Headers telling IIS _NOT_ to use compression for that response.  See below...

<cfhttp 
    url="http://someURL.com/svcs/targetTemplate.cfm?argument1=value1&argument2=value2" 
    method="get" 
    compression="none" 
    result="remoteCallResult" >
            
        <cfhttpparam type="header" name="Accept-Encoding" value="deflate;q=0" />
            
        <cfhttpparam type="header" name="TE" value="deflate;q=0" />

</cfhttp>

OR

<cfhttp 
    url="http://someURL.com/svcs/targetTemplate.cfm?argument1=value1&argument2=value2"
    method="get" 
    compression="none" 
    result="remoteCallResult" >
            
        <cfhttpparam type="header" name="Accept-Encoding" value="*" />
            
        <cfhttpparam type="header" name="TE" value="deflate;q=0" />

</cfhttp>

That should do the trick!

Credit and a more detailed breakdown of this can be found at Steve Erat's Blog

Bookmark and Share
Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds