I am trying to perform a cfhttp post and I need to include a URL in the URL vars to give directions to where to deposit a delivery receipt.
Here is my code:
<cfhttp result="CFHTTP" method="GET" url="http://xxxxxxxxxxx/send-sms.php?sender=#numbers.number#&to=#get_sms.receiver#&message=#get_sms.msgdata#&dlr-url=#get_sms.dlr_url#">
<cfhttpparam type="formfield" name="sender" value="#numbers.number#">
<cfhttpparam type="formfield" name="to" value="#get_sms.receiver#">
<cfhttpparam type="formfield" name="message" value="#get_sms.msgdata#">
<cfhttpparam type="formfield" name="dlr-url" value="#get_sms.dlr_url#">
</cfhttp>
And everything works if I do not include the dlr_url which is similar to the following:
I can only assume that items like "?" and "&" would be breaking the process. Any ideas on how to accomplish this?
Thank you all for any help.
I don't what I was thinking....
Needed to encode:
#URLEncodedFormat(get_sms.dlr_url)#Sorry I didn't think of thanks!!!