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

cfhttp returns nothing

Status
Not open for further replies.

ColdFusionKing

Programmer
Dec 5, 2002
145
GB
Hi Everybody,

I am trying to invoke a .asp file using the cfhttp
tag.

<CFHTTP url=&quot;method=&quot;GET&quot;/>

Here is my asp code:

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<%
Dim userEmail
userEmail = session(&quot;user.email&quot;)
Response.Write userEmail
response.write request.Cookies(&quot;user.email&quot;)
%>

When I dump the responseheader cfhttp attribute
<cfdump var=&quot;#CFHTTP.responseHeader#&quot;>, this is what
gets returned

Cache-control private
Connection close
Content-Length 0
Content-Type text/html
Date Mon, 27 Oct 2003 14:29:50 GMT
Explanation OK
Http_Version HTTP/1.1
Server Microsoft-IIS/5.0
Set-Cookie struct
1 user%2Eemail=; path=/
2 ASPSESSIONIDCAACRDRT=MCFBGIHCKINECGDGCJHAHDPL;
path=/

Status_Code 200

cfhttp.filecontent returns nothing. I can't understand
why the session and cookie scope variables are not
returned. I am using coldfion mx, I don't have a
application.cfm file, all the session and cookie
variables are declared and set in the asp global.asa
file. Please can somebody help me

Many Thanks
Allan
 
Both the asp and coldfusion file that invokes the asp file are in the same directory under my webroot. In IIS I edited the .asp file properties, clicked on the &quot;File Security&quot; tab, hit the &quot;Edit&quot; button under the Annoymous access and authentication control section, checked the &quot;Annoymous access&quot; tick box and unchecked the &quot;Integrated Windows Authentication&quot; tick box. When I browse the .asp file directly in the browser (after visting the site home page to allow global.asa set the session and cookie scope variabes), response.write outputs the cookie and session variable values. But when I do the same using the cfhttp tag, I don't see anything being outputted. Can anyone tell me what I need to do for cfhttp to display the cookie and session variables. I am just using the url and get attributes, do I have to use other attributes too?
 
Just to start with the obvious... after your CFHTTP call, you're than doing a
Code:
<CFOUTPUT>#CFHTTP.FileContent#</CFOUTPUT>
, yes?


-Carl
 
yes that's correct, cfdump returns an empty string. So there is no value being returned
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top