Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
horne8221 #1
Using CFHTTP to access a page that executies CFQUERY's
I have a page called print.cfm. It's purpose is to print out, to screen, all
pages of a multi-page application form. Throughout print.cfm I have CFQUERY
calls to the database to retrieve the content that the user has submitted to
the database. I am trying to access this page using a CFHTTP call and write
it's contents to an HTML file. All works well, EXCEPT I don't get any of the
content from the database - the questions appear but the answers come up blank.
If I access my print.cfm page directly through my browser I see the questions
and answers. Is it possible to use CFHTTP to access the contents of a page
that is dynamically outputting content from queries? Here is my CFHTTP call:
<cfhttp
URL="http://192.168.0.10/test/proposal/print.cfm?lang=#lang#&type=pdf"
port="80"
timeout="20000"
method="Get"
file="pp#session.orgid#.htm"
path="#application.directory_path#\proposal\print\ html_files"
resolveurl="Yes"
redirect="Yes">
horne8221 Guest
-
New Page Access
Is there a way to prevent users from creating a new page? Even wth allof the options unchecked in the Role Settings dialog box, a writer in that... -
CFHTTP get method on SSL page
Hi All, I'm using cfthttp tag to get xml data from a secure link. This tag is works fine with the regular page (http page) but it doesn't work with... -
Restrict page access to parent page only (not by permissions)
I wish to restrict access of a pop-up page to parent page only. i.e. - if a request for "popup.cfm" comes from anywhere except "launch.cfm" then... -
Controlling Page Access in .aspx page
I am building some .NET classes and pages that will be part of an existing classic ASP app. The ASP app uses cookies to store login information for... -
an "access denied" page for unauthorised page access
I would like to show an "access denied" page when an authenticated user tries to access a page for which they are not authorised (role-based). ... -
horne8221 #2
Re: Using CFHTTP to access a page that executiesCFQUERY's
For anyone that runs into a similiar problem... I did eventually figure this
out. My print.cfm page, that I was calling through CFHTTP, had several queries
on it that were querying the database based on a SESSION variable (i.e. WHERE
orgID = #session.orgid#). When using CFHTTP, the session is lost (CFHTTP
creates it's own session). So, my fix was as simple as passing in the orgID
through the CFHTTP call instead of querying based on the session value.
horne8221 Guest



Reply With Quote

