Index: openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl,v diff -u -r1.35.8.14 -r1.35.8.15 --- openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl 23 Jul 2014 21:22:30 -0000 1.35.8.14 +++ openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl 6 Aug 2014 10:52:38 -0000 1.35.8.15 @@ -496,7 +496,13 @@ # Therefore, we check first for the NaviServer built in ns_http, then # if the optional xotcl-core components are available... # - if {[info commands ::ns_http] ne "" && [apm_version_names_compare [ns_info patchlevel] "4.99.5"] == 1} { + + set httpImpls [util::http::available -url $url -spool] + if {$httpImpls ne ""} { + ns_log notice "we can use the http::util:: interface using the $httpImpls implementation" + set result [util::http::get -url $url -spool] + file rename $F $output_file_name + } elseif {[info commands ::ns_http] ne "" && [apm_version_names_compare [ns_info patchlevel] "4.99.5"] == 1} { # # ... use ns_http when we have a version with the "-file" flag ... #