If you have an existing page which invokes (form or link) the  cgi 
script, you have everything you need to duplicate the process thru 
CFHTTP.

Some cgi scripts are invoked with a link... use GFHTTP method = get

Some cgi scripts are invoked with a form... use GFHTTP method = get or post to
match the Form method parameter.

   if method= get, replicate the form fields with URL params

   if method = post replicate the  form fields with cfhttpparam  statements

You can invoke any cgi program that an html page invokes, just 
examine the source and simulate the process with CFHTTP

HTH


Dick


At 7:22 PM -0700 6/17/2000, Leong Yew wrote:
>Does anyone know under what conditions the use of cfhttp returns 
>"connection failure" as the value of cfhttp.filecontent?
>
>I tried submitting form data to a cgi script on a different server 
>with the following code, and all I kept getting was a connection 
>failure. When I get rid of the form data cfhttp connects normally 
>and returns the default page when the cgi script is called without 
>any form data being passed to it. Unfortunately I don't have access 
>to the cgi script so I can't figure out what it does to the form 
>data when it receives it.
>
>Here it is:
>
><cfhttp url="http://www.somedomain.com/cgi-bin/script.pl" 
>method="post" resolveurl="yes">
><cfhttpparam type="FormField" name="login" value="#form.username#">
><cfhttpparam type="FormField" name="password" value="#form.password#">
>
></cfhttp>
>
><cfoutput>#cfhttp.filecontent#</cfoutput>
>
\
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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