Michael Eger wrote:
> Below is a quick example I used to test with. I am not sure why a cfhttp call
> would be treated differently than the php fileGetContent call, but it seems
> like it is. Some other examples I have found seemed to show developers using

maybe this?

<cfhttp url="http://translate.google.com/translate_t"; method="get" 
result="googleTranslatedText" resolveurl="yes" throwonerror="yes" 
charset="utf-8" useragent="old man riding a bike">
        <cfhttpparam name="hl" value="en" type="url">
        <cfhttpparam name="ie" value="UTF8" type="url">
        <cfhttpparam name="langpair" value="en|fr" type="url">
        <cfhttpparam name="text" value="something simple this way comes" 
type="url">
</cfhttp>

<cfdump var="#googleTranslatedText#">

probably should use "url" as the cfhttpparam type (it's a get) & i *think* the 
key is to trick google using the user agent param.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281361
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to