This worked, returned an invalid phone number...
<cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
port="80"
method="POST"
useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes"
timeout="60">
<cfhttpparam type="FORMFIELD" name="message" value="This is a test! Let's
try if this works. If it does, this would be the message!">
<cfhttpparam type="FORMFIELD" name="mobilenum" value="3011111111">
<cfhttpparam type="FORMFIELD" name="callbacknum" value="3012222222">
</cfhttp>
<CFOUTPUT>#CFHTTP.FILECONTENT#</CFOUTPUT>
I almost forgot that you almost always need to specify the port number...
Also note that I removed the <CFHTTPPARAM> for the submit button.
HTH
Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com
-----Original Message-----
From: Michailov, Dimitar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 12:15 PM
To: CF-Talk
Subject: RE: Form submission problem via CFHTTP
How do you specify the name of a form when you submit via CFHTTP??
DImo
-----Original Message-----
From: Garza, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 12:24 PM
To: CF-Talk
Subject: RE: Form submission problem via CFHTTP
One thing that I noticed is that the original form had a name...
<form name="frm" method="post" action="check_message_syntax.html">
You might want to try giving your form a name that matches as the accepting
page might be looking for that.
Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com
-----Original Message-----
From: Michailov, Dimitar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 10:01 AM
To: CF-Talk
Subject: Form submission problem via CFHTTP
Hello all:
Here's a problem that I've been tackling for a while now and I can't seem to
find the solution. I would like to interact with SprintPCS's module for
sending short text messages to my personal phone.
Having the form on my site works ok when filled out and submitted (the
phone numbers below are changed from the original ones):
<form
action="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST">
<input type="hidden" name="mobilenum" value="3011111111">
<input name="callbacknum" size="10" maxlength="10"
type="TEXT" value="3012222222">
<textarea wrap="VIRTUAL" name="message" cols="21"
rows="5"></textarea>
<input type="submit">
</form>
However, I would like to submit this via CFHTTP so I can control the output
but SprintPCS system responds that the fields I am passing are undefined.
Here's the code I am using:
<cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST" useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes" timeout="60">
<cfhttpparam type="FORMFIELD" name="message" value="This is a test!
Let's try if this works. If it does, this would be the message!"> <!--- No
more than 100 characters --->
<cfhttpparam type="FORMFIELD" name="mobilenum" value="3011111111">
<cfhttpparam type="FORMFIELD" name="callbacknum" value="3012222222">
<cfhttpparam type="FORMFIELD" name="Submit" value="">
</cfhttp>
Does anyone have any ideas why the CFHTTP code does not work? Any
help/solutions would be greatly appreciated.
Thanks,
Dimo Michailov
Certified Cold Fusion 4.5 Web Developer
USA-IT, Inc.
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists