Re:CFHTTP Question!
I took your advise Stephen and copied the contents of the include file into a new file and saved it as a coldfusion file. I am using cfinclude to call this file. There is a if condition in the include file which is in asp. % if session(user.supportuser) = TRUE then % Do Something % end if % I am trying to re-write this in coldfusion but I don't know how to do it. It is probably a silly question, but can ColdFusion read an asp session variable? I have tried to dump the session scope but get an error. I don't have a application.cfm file. If I can get this working then my problem is solved. Stephen Moritti's post As a side thought If that menu.asp is actually just a bunch of html with no asp code in there, the you could just use cfinclude to drag it into your cf code. Or you could bin that asp junk altogether and.~joking~ ;o) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFHTTP Question!
Can somebody please advise me what to do? I took your advise Stephen and copied the contents of the include file into a new file and saved it as a coldfusion file. I am using cfinclude to call this file. There is a if condition in the include file which is in asp. % if session(user.supportuser) = TRUE then % Do Something % end if % I am trying to re-write this in coldfusion but I don't know how to do it. It is probably a silly question, but can ColdFusion read an asp session variable? I have tried to dump the session scope but get an error. I don't have a application.cfm file. If I can get this working then my problem is solved. Stephen Moritti's post As a side thought If that menu.asp is actually just a bunch of html with no asp code in there, the you could just use cfinclude to drag it into your cf code. Or you could bin that asp junk altogether and.~joking~ ;o) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFHTTP Question!
Thanks Mark for your explaination and yes that makes sense. I will try to get the asp session variable value from one of three ways your suggested (form,url,cookie). Many Thanks Sorry If you question is can I read ASP sessions the answer is no.You cannot get sessions in Cold Fusion without the cfapplication tag (sessionmanagement=YES).so... if you are trying to pass a session variable to CF from an ASP page it will have to be done using post or get (url or form or possibly cookie variables).If you are rewriting the whole thing, then start with the Cfapplication tag and build a session scope with the variables you need (like user.supportuser). Does this help? -Mark -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 9:48 AM To: CF-Talk Subject: Re:CFHTTP Question! Can somebody please advise me what to do? I took your advise Stephen and copied the contents of the include file into a new file and saved it as a coldfusion file. I am using cfinclude to call this file. There is a if condition in the include file which is in asp. % if session(user.supportuser) = TRUE then % Do Something % end if % I am trying to re-write this in coldfusion but I don't know how to do it. It is probably a silly question, but can ColdFusion read an asp session variable? I have tried to dump the session scope but get an error. I don't have a application.cfm file. If I can get this working then my problem is solved. Stephen Moritti's post As a side thought If that menu.asp is actually just a bunch of html with no asp code in there, the you could just use cfinclude to drag it into your cf code. Or you could bin that asp junk altogether and.~joking~ ;o) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFHTTP Question!
When I output the http response headers, this is what gets displayed Output the Response Headers: Date : Mon, 20 Oct 2003 15:20:34 GMT Server : Microsoft-IIS/5.0 Content-Length : 4431 Content-Type : text/html Explanation : Access Denied Connection : close Status_Code : 401 WWW-Authenticate : NTLM Http_Version : HTTP/1.1 Does anybody have any ideas? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFHTTP Question!
so what are you suggesting? How do I use HTTP authentication mechanism? ColdFusion Programmer wrote: Date : Mon, 20 Oct 2003 15:20:34 GMT Server : Microsoft-IIS/5.0 Content-Length : 4431 Content-Type : text/html Explanation : Access Denied Connection : close Status_Code : 401 WWW-Authenticate : NTLM Http_Version : HTTP/1.1 Does anybody have any ideas? According to the web server, you need to use HTTP authentication (mechanism described in RFC 2617) using the propietary NTLM system from Microsoft. I doubt that is implemented in cfhttp. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFHTTP Question!
This is the code I have got on my Coldfusion file CFHTTP url="" METHOD=GET RESOLVEURL=true throwonerror=yes/ cfoutput#CFHTTP.FileContent# /cfoutput I get an error: You are not authorized to view this page You do not have permission to view this directory or page using the credentials you supplied. Can somebody tell me what am I doing wrong Thanks Hello everybody, I'm trying to call a .asp file from my coldfusion page using cfhttp and I keep getting errors. Both files are on the same server, just different folders under the site webroot. This should explain it: The ColdFusion file is in C:\Inetpub\wwwroot\myProject\pages\folder1\searchreport.cfm and the ASP file is in C:\Inetpub\wwwroot\myProject\site\includes\topmenu\folder2\menu.asp. Can somebody show me how to use cfhttp to call the asp file (menu.asp) in my coldfusion file (searchreport.cfm) Many Thanks Allan __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFHTTP Question!
When I browse the asp file in the browse, it displays the menu on the browser. This is the url I'm using: http://myProject/site/includes/topmenu/folder2/menu.asp But when I include this url in cfhttp I get You are not authorized to view this page You do not have permission to view this directory or page using the credentials you supplied. error. Here is my code: CFHTTP url="" METHOD=GET RESOLVEURL=true throwonerror=yes/ cfoutput#CFHTTP.FileContent# /cfoutput Am I missing some attributes in my cfhttp tag? Allan, What is the URL you need to type into a browser in order to run menu.asp? That is the URL you need to specify for using CFHTTP. (Remember when using CFHTTP it is the ColdFusion server running the request so the URL needs to be from the perspective of what the ColdFusion server can see the menu.asp page as which could mean using a 127.0.0.1 or localhost address since it is on the same server. Also, in general better to use IP addresses to avoid domain name resolution issues though you loose the obvious benefits.) Andr -Original Message- From: Allan Clarke [mailto:[EMAIL PROTECTED] Sent: 17 October 2003 16:01 To: CF-Talk Subject: CFHTTP Question! Hello everybody, I'm trying to call a .asp file from my coldfusion page using cfhttp and I keep getting errors. Both files are on the same server, just different folders under the site webroot. This should explain it: The ColdFusion file is in C:\Inetpub\wwwroot\myProject\pages\folder1\searchreport.cfm and the ASP file is in C:\Inetpub\wwwroot\myProject\site\includes\topmenu\folder2\menu.asp. Can somebody show me how to use cfhttp to call the asp file (menu.asp) in my coldfusion file (searchreport.cfm) Many Thanks Allan __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]