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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Fusebox and CFHTTP tag

Status
Not open for further replies.

ketankshah

IS-IT--Management
Joined
Jan 11, 2001
Messages
121
Location
IN
I am using FuseBox 3.0 and facing a problem while using CFHTTP tag.

The purpose of this code is to call a file in a separate thread so that the control is returned back immediately to the calling page without waiting for a long processing. Through this page I am sending emails to a huge list of subscriber and while the request is in process I want to show a "Please wait" message along with counter showing % of task finished. But when I call this code, it does not take fuseaction as the url parameter and always run my home page with default fuseaction (i.e. index.cfm without any fuseaction). How can I sort out this problem? Please help.

Ketan

The code is as below:


<cfhttp url=&quot; method=&quot;POST&quot; resolveurl=&quot;true&quot; timeout=&quot;1&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;fuseaction&quot; value=&quot;#xfa.runpublish#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;title&quot; value=&quot;#attributes.title#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;subject&quot; value=&quot;#attributes.subject#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;content&quot; value=&quot;#attributes.content#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;newsletters&quot; value=&quot;#attributes.newsletters#&quot;>
</cfhttp>
 
Move the URL parameter requesttimeout down to a <cfhttpparam>

<cfhttp url=&quot;
Code:
[URL unfurl="true"]http://localhost/newsletters/#request.self#[/URL]
?requesttimeout=2700&quot;
; method=&quot;POST&quot; resolveurl=&quot;true&quot; timeout=&quot;1&quot;>

<cfhttpparam type=&quot;URL&quot; name=&quot;requesttimeout&quot; value=&quot;2700&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;fuseaction&quot; value=&quot;#xfa.runpublish#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;title&quot; value=&quot;#attributes.title#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;subject&quot; value=&quot;#attributes.subject#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;content&quot; value=&quot;#attributes.content#&quot;>
<cfhttpparam type=&quot;URL&quot; name=&quot;newsletters&quot; value=&quot;#attributes.newsletters#&quot;>
</cfhttp> - tleish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top