Nevermind.  I was specifying something for my "path" arg (more complicated
than example in email) that was an invalid directory but cfhttp was
*not*throwing a "no such directory" error.  Strange.  Correcting that
made cfhttp
function as expected.

On Fri, Jul 31, 2009 at 3:09 PM, John M Bliss <[email protected]> wrote:

> I'm using cfhttp to get a URL like 
> "https://domain.com/file.aspx?q=[UUID]<https://domain.com/file.aspx?q=%5BUUID%5D>"
> where file.aspx is returning headers like:
>
> Content-Disposition: attachment; filename="file.zip"
>
> Of course, when I paste that URL into a browser, I'm prompted for where I'd
> like to save file.zip but when I do this:
>
> <cfhttp 
> url="https://domain.com/file.aspx?q=[UUID]<https://domain.com/file.aspx?q=%5BUUID%5D>"
> file="file.zip" getasbinary="auto" path="#ExpandPath('./')#" method="get">
>
> ...nothing(?) happens.  I think maybe cfhttp would only work like this if
> URL was like "https://domain.com/file.zip";  Anyone know how I can use
> cfhttp to fetch an attachment like this and save it to disk?
>
> --
> John Bliss
> IT Professional
> LinkedIn: http://www.linkedin.com/in/jbliss
>



-- 
John Bliss
IT Professional
LinkedIn: http://www.linkedin.com/in/jbliss


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325153
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=<:emailid:>.<:userid:>.<:listid:>

Reply via email to