I'll try to be brief. I should make it clear that this isn't my code, by the way. I'm hoping someone can help me out:
I have a custom tag that *used to* work with Yahoo Maps for Driving Directions. To explain, I have a form that a user fills out with their address information and then upon submitting, a custom tag is called. The custom tag then parses the address entered and uses CFHTTP to post that data to: Some URL paramaters are passed to that URL, but I get a "Connection Failure" when trying to post. I've listed the custom tag below - I'm hoping someone will know how to help me. I looked at the source for that page, but I'm unsure if EVERY form element must be included. I can only assume that Yahoo made a slight change to the form, so it's not posting properly.
Thanks very much for any help you can give.
Steve
<!---Nice people don't delete these lines
Author : Alan L. Do (aka. da Cold Fusion Bubba)
Email : mathmjr@pacbell.net
Date : 1/17/02
Nice people credit the guy who wrote this--->
<HTML>
<HEAD><TITLE>CF_DIRECTME SOURCE CODES</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#336699" ALINK="#03510A" VLINK="#555555">
<!---Hafta declare them va..ri..a..bells..--->
<CFPARAM NAME="attributes.ORIGINADDRESS" DEFAULT="">
<CFPARAM NAME="attributes.ORIGINCSZ" DEFAULT="">
<CFPARAM NAME="attributes.DESTINATIONADDRESS" DEFAULT="">
<CFPARAM NAME="attributes.DESTINATIONCSZ" DEFAULT="">
<!---That good 'ole HTTP protocol is applied here--->
<CFHTTP URL=" NAME="directionyahoo"
METHOD="POST"
RESOLVEURL="Yes"
>
<!---Here are the pre-defined parameters that Mapquest uses--->
<CFHTTPPARAM TYPE="FORMFIELD" NAME="pyt" VALUE="Tmap">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tarname" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tardesc" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newname" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newdesc" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newHash" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newTHash" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newSts" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newTSts" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tlt" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tln" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="slt" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="sln" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newFL" VALUE="Use Address Below">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newaddr" VALUE="#attributes.ORIGINADDRESS#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newcsz" VALUE="#attributes.ORIGINCSZ#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newcountry" VALUE="us">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newTFL" VALUE="Use Address Below">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newtaddr" VALUE="#attributes.DESTINATIONADDRESS#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newtcsz" VALUE="#attributes.DESTINATIONCSZ#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newtcountry" VALUE="us">
</CFHTTP>
<!---Da file output...you can play with it all you want (ie. delete it and place it elsewhere on your output page)--->
<CFOUTPUT>#CFHTTP.FileContent#</CFOUTPUT>
</BODY>
</HTML>
I have a custom tag that *used to* work with Yahoo Maps for Driving Directions. To explain, I have a form that a user fills out with their address information and then upon submitting, a custom tag is called. The custom tag then parses the address entered and uses CFHTTP to post that data to: Some URL paramaters are passed to that URL, but I get a "Connection Failure" when trying to post. I've listed the custom tag below - I'm hoping someone will know how to help me. I looked at the source for that page, but I'm unsure if EVERY form element must be included. I can only assume that Yahoo made a slight change to the form, so it's not posting properly.
Thanks very much for any help you can give.
Steve
<!---Nice people don't delete these lines
Author : Alan L. Do (aka. da Cold Fusion Bubba)
Email : mathmjr@pacbell.net
Date : 1/17/02
Nice people credit the guy who wrote this--->
<HTML>
<HEAD><TITLE>CF_DIRECTME SOURCE CODES</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#336699" ALINK="#03510A" VLINK="#555555">
<!---Hafta declare them va..ri..a..bells..--->
<CFPARAM NAME="attributes.ORIGINADDRESS" DEFAULT="">
<CFPARAM NAME="attributes.ORIGINCSZ" DEFAULT="">
<CFPARAM NAME="attributes.DESTINATIONADDRESS" DEFAULT="">
<CFPARAM NAME="attributes.DESTINATIONCSZ" DEFAULT="">
<!---That good 'ole HTTP protocol is applied here--->
<CFHTTP URL=" NAME="directionyahoo"
METHOD="POST"
RESOLVEURL="Yes"
>
<!---Here are the pre-defined parameters that Mapquest uses--->
<CFHTTPPARAM TYPE="FORMFIELD" NAME="pyt" VALUE="Tmap">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tarname" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tardesc" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newname" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newdesc" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newHash" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newTHash" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newSts" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newTSts" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tlt" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="tln" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="slt" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="sln" VALUE="">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newFL" VALUE="Use Address Below">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newaddr" VALUE="#attributes.ORIGINADDRESS#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newcsz" VALUE="#attributes.ORIGINCSZ#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newcountry" VALUE="us">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newTFL" VALUE="Use Address Below">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newtaddr" VALUE="#attributes.DESTINATIONADDRESS#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newtcsz" VALUE="#attributes.DESTINATIONCSZ#">
<CFHTTPPARAM TYPE="FORMFIELD" NAME="newtcountry" VALUE="us">
</CFHTTP>
<!---Da file output...you can play with it all you want (ie. delete it and place it elsewhere on your output page)--->
<CFOUTPUT>#CFHTTP.FileContent#</CFOUTPUT>
</BODY>
</HTML>