This is a multi-part message in MIME format.

------=_NextPart_000_0607_01C00095.813B5410
Content-Type: text/plain;
        charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

CFHTTP QuestionYou have to specify the PORT as an attribute for CFHTTP =
as opposed to placing it directly in the URL.

DC

  ----- Original Message -----=20
  From: Randy Adkins=20
  To: [EMAIL PROTECTED]=20
  Sent: Monday, August 07, 2000 17:29
  Subject: CFHTTP Question


  I am using an example straight out of the Advanced book of CF.=20
  I want to do a CFHTTP POST and post data to a form.=20

  However using the exmaple shown below, I get a HTTP 404 Error.=20
  Both files reside in the same directory. I have checked and re-checked =

  the spelling of the files.=20

  Any idea whats wrong?=20

  THIS IS CFHTTP_5.CFM=20

  <cfhttp url=3D"http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm" =
method=3D"POST">=20
   <cfhttpparam name=3D"form_test" type=3D"formfield" value=3D"1">=20
   <cfhttpparam type=3D"URL" name=3D"url_test" value=3D"2">=20
   <cfhttpparam type=3D"CGI" name=3D"cgi_test" value=3D"3">=20
   <cfhttpparam type=3D"COOKIE" name=3D"cookie_test" value=3D"4">=20
  </cfhttp>=20

  <cfoutput>#cfhttp.filecontent#</cfoutput>=20



  THIS IS CFHTTP_6.CFM=20

  <html>=20
  <head>=20
  <title>CFHTTP Post Test</title>=20
  </head>=20

  <body>=20
  The following was posted via cfhttp_5.cfm<br>=20
  <br>=20
  <br>=20
  <cfoutput>=20
  Form: #form.form_test#<br>=20
  URL: #url.url_test#<br>=20
  Cookie: #cookie.cookie_test#=20
  CGI: #cgi.cgi_test#=20

  </cfoutput>=20
  </body>=20
  </html>=20

  =
-------------------------------------------------------------------------=
-----=20
  Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/=20
  To Unsubscribe visit =
http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dlists/cf_ta=
lk or send a message to [EMAIL PROTECTED] with =
'unsubscribe' in the body.


------=_NextPart_000_0607_01C00095.813B5410
Content-Type: text/html;
        charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>CFHTTP Question</TITLE>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>You have to specify the PORT as an =
attribute for=20
CFHTTP as opposed to placing it directly in the URL.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>DC</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:[EMAIL PROTECTED]" =
[EMAIL PROTECTED]>Randy=20
  Adkins</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:[EMAIL PROTECTED]"=20
  [EMAIL PROTECTED]>[EMAIL PROTECTED]</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, August 07, 2000 =
17:29</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> CFHTTP Question</DIV>
  <DIV><BR></DIV>
  <P><FONT size=3D2>I am using an example straight out of the Advanced =
book of=20
  CF.</FONT> <BR><FONT size=3D2>I want to do a CFHTTP POST and post data =
to a=20
  form.</FONT> </P>
  <P><FONT size=3D2>However using the exmaple shown below, I get a HTTP =
404=20
  Error.</FONT> <BR><FONT size=3D2>Both files reside in the same =
directory. I have=20
  checked and re-checked</FONT> <BR><FONT size=3D2>the spelling of the=20
  files.</FONT> </P>
  <P><FONT size=3D2>Any idea whats wrong?</FONT> </P>
  <P><FONT size=3D2>THIS IS CFHTTP_5.CFM</FONT> </P>
  <P><FONT size=3D2>&lt;cfhttp url=3D"<A=20
  href=3D"http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm"=20
  target=3D_blank>http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm</A>"=20
  method=3D"POST"&gt;</FONT> <BR><FONT size=3D2>&nbsp;&lt;cfhttpparam=20
  name=3D"form_test" type=3D"formfield" value=3D"1"&gt;</FONT> <BR><FONT =

  size=3D2>&nbsp;&lt;cfhttpparam type=3D"URL" name=3D"url_test" =
value=3D"2"&gt;</FONT>=20
  <BR><FONT size=3D2>&nbsp;&lt;cfhttpparam type=3D"CGI" =
name=3D"cgi_test"=20
  value=3D"3"&gt;</FONT> <BR><FONT size=3D2>&nbsp;&lt;cfhttpparam =
type=3D"COOKIE"=20
  name=3D"cookie_test" value=3D"4"&gt;</FONT> <BR><FONT=20
  size=3D2>&lt;/cfhttp&gt;</FONT> </P>
  <P><FONT =
size=3D2>&lt;cfoutput&gt;#cfhttp.filecontent#&lt;/cfoutput&gt;</FONT>=20
  </P><BR>
  <P><FONT size=3D2>THIS IS CFHTTP_6.CFM</FONT> </P>
  <P><FONT size=3D2>&lt;html&gt;</FONT> <BR><FONT =
size=3D2>&lt;head&gt;</FONT>=20
  <BR><FONT size=3D2>&lt;title&gt;CFHTTP Post Test&lt;/title&gt;</FONT> =
<BR><FONT=20
  size=3D2>&lt;/head&gt;</FONT> </P>
  <P><FONT size=3D2>&lt;body&gt;</FONT> <BR><FONT size=3D2>The following =
was posted=20
  via cfhttp_5.cfm&lt;br&gt;</FONT> <BR><FONT size=3D2>&lt;br&gt;</FONT> =
<BR><FONT=20
  size=3D2>&lt;br&gt;</FONT> <BR><FONT size=3D2>&lt;cfoutput&gt;</FONT> =
<BR><FONT=20
  size=3D2>Form: #form.form_test#&lt;br&gt;</FONT> <BR><FONT =
size=3D2>URL:=20
  #url.url_test#&lt;br&gt;</FONT> <BR><FONT size=3D2>Cookie:=20
  #cookie.cookie_test#</FONT> <BR><FONT size=3D2>CGI: =
#cgi.cgi_test#</FONT> </P>
  <P><FONT size=3D2>&lt;/cfoutput&gt;</FONT> <BR><FONT =
size=3D2>&lt;/body&gt;</FONT>=20
  <BR><FONT size=3D2>&lt;/html&gt;</FONT> </P>
  <P><FONT=20
  =
size=3D2>----------------------------------------------------------------=
--------------</FONT>=20
  <BR><FONT size=3D2>Archives: <A=20
  href=3D"http://www.mail-archive.com/cf-talk@houseoffusion.com/"=20
  =
target=3D_blank>http://www.mail-archive.com/cf-talk@houseoffusion.com/</A=
></FONT>=20
  <BR><FONT size=3D2>To Unsubscribe visit <A=20
  =
href=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&amp;body=3D=
lists/cf_talk"=20
  =
target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am=
p;body=3Dlists/cf_talk</A>=20
  or send a message to [EMAIL PROTECTED] with =
'unsubscribe' in=20
  the body.</FONT></P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0607_01C00095.813B5410--

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to