Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFHTTP DON'T WORK

Status
Not open for further replies.

cfm

Programmer
Mar 27, 2001
76
CL
I have a this form

<form name=PostMessage action= method=post>
<meta http-equiv=&quot;Content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;><br>
<input type=text name=login tabindex=1 size=25 maxlength=35 class=inputbox><br>
<input type=password name=password tabindex=2 size=25 maxsize=35 class=inputbox><br>
<input type=text name=subject tabindex=3 size=55 maxlength=60 value=&quot;&quot; class=inputbox><br>
<textarea name=body tabindex=4 rows=15 cols=55 wrap=virtual class=inputbox></textarea><br>
<input type=&quot;Submit&quot; value=&quot;submit&quot;>
</form>


whit cfhttp dont work?
why?

<cfhttp url=&quot; method=&quot;post&quot;>
<cfhttpparam name=&quot;body&quot; value=&quot;jajajajaj&quot; type=&quot;FORMFIELD&quot;>
<cfhttpparam name=&quot;subject&quot; value=&quot;jh&quot; type=&quot;FORMFIELD&quot;>
<cfhttpparam name=&quot;login&quot; value=&quot;jh&quot; type=&quot;FORMFIELD&quot;>
<cfhttpparam name=&quot;password&quot; value=&quot;&quot; type=&quot;FORMFIELD&quot;>
</cfhttp>

return &quot;Connection Failure&quot;

any idea?

Thanks.
 

I have a version 4.5

Thanks.
 
No problem did you look at the link I sent you?

&quot;CFHTTP now allows for all 200 level status codes. Prior to this release CFHTTP would fail with a connection failure if the status code was anything but 200&quot;

This is fixed in 4.5.1. sp2 I would try to upgrade, or better yet look for a machine with CF5 to try this with. If you do not have access to version 5 you can download a developers edition from Macromedia.com which is a free full version of CF5, the only restriction is that you can only use it with one ip number.

On a final note I tried your code on CF5 and I get no error!

HTH

Kola
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top