I'm having a problem looping over a CFHTTP post and was wondering if anyone
has experienced something similar. Here is an example of what I'm trying to
do. I have a query that runs and pulls information from a database on sites
that I want to grab specific pages from. In this example, this query returns
back 2 records. The first loop through CFHTTP post runs find but the second
one gives me a connection error.
<CFLOOP query="siteinfo">
<CFHTTP method="post" url="#siteinfo.query_url#" timeout="500"
resolveurl="yes" >
<CFHTTPPARAM name="index" value="#siteinfo.index#" type="formfield">
<CFHTTPPARAM name="field-keywords" value="#siteinfo.keywords#"
type="formfield">
</CFHTTP>
#cfhttp.filecontent#
</CFLOOP>
If I take out the loop and do this it works.
<CFHTTP method="post"
url="http://www.amazon.com/exec/obidos/search-handle-form" timeout="500"
resolveurl="yes" >
<CFHTTPPARAM name="index" value="music" type="formfield">
<CFHTTPPARAM name="field-keywords" value="TOOL" type="formfield">
</CFHTTP>
#cfhttp.filecontent#
<CFHTTP method="post"
url="http://www.amazon.com/exec/obidos/search-handle-form" timeout="500"
resolveurl="yes" >
<CFHTTPPARAM name="index" value="popular" type="formfield">
<CFHTTPPARAM name="field-keywords" value="TOOL" type="formfield">
</CFHTTP>
#cfhttp.filecontent#
Why is it that I can copy and paste the same code in twice and have it work
but whenever I try and loop over it, I keep erroring out. Any ideas?!?!?!
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================