Hi friends:
This is the problem that's eating my brain now.
I need to access to a asp file that send me back a cvs
file as attachment. I can not see how to get the cvs
file.
Down there is the piece of cf code and continuesly
what I see in the client side.
Any ideas???
Thanks Mario
<cfhttp RESOLVEURL="Yes" REDIRECT="No"
USERAGENT="Mozilla/4.0 (compatible; MSIE 6.0 Windows
NT 5.1; Q312461)" METHOD="POST" URL="#InstrLedAttURL#"
>
<cfhttpparam NAME="ZDUSMSK" TYPE="Cookie"
VALUE="#cook#">
</cfhttp>
<CFOUTPUT>
<BR>
<H3><B>The mime-type:</B></H3><BR>
#cfhttp.mimetype#<BR>
<H3><B>The Status Code:</B></H3><BR>
#cfhttp.statuscode#<BR>
<H3><B>The Raw Header:</B></H3><BR>
#cfhttp.header#<BR>
</CFOUTPUT>
<CFLOOP collection=#cfhttp.RESPONSEHEADER#
item="httpHeader">
<CFSET value = cfhttp.RESPONSEHEADER[httpHeader]>
<CFIF IsSimpleValue(value)>
<cfif #httpHeader# is "SET-COOKIE">
<cfset
arraydata=#REFind("ZDUSMSK=([^;]+)",value,1,"TRUE")#>
<cfset cook=#Mid(value,
arraydata.pos[2],arraydata.len[2])#>
<CFOUTPUT>
Cookie : #cook#<BR>
</CFOUTPUT>
</cfif>
<CFOUTPUT>
#httpHeader# : #value#<BR>
</CFOUTPUT>
<CFELSE>
<CFLOOP index="counter" from=1
to=#ArrayLen(value)#>
<CFOUTPUT>
#httpHeader# : #value[counter]#<BR>
</CFOUTPUT>
</CFLOOP>
</CFIF>
</CFLOOP>
</BODY>
</HTML>
//////////////////////////////////////////////////
//This is what I see in the browser
///////////////////////////////////////////////
The requested file is not ASCII text and can not be
rendered.
The mime-type:
application/unknown
The Status Code:
200 Success
The Raw Header:
HTTP/1.1 200 OK Server: Microsoft-IIS/4.0 Date: Mon,
08 Apr 2002 22:38:22 GMT Content-Disposition:
attachment;
filename=OnlineInstructorLed_Attendance.csv
Content-Length: 833 Connection: Keep-Alive
Content-Length: 833 Content-Type: application/unknown
Cache-control: public
CACHE-CONTROL : public
CONNECTION : Keep-Alive
CONTENT-DISPOSITION : attachment;
filename=OnlineInstructorLed_Attendance.csv
CONTENT-LENGTH : 833
CONTENT-LENGTH : 833
CONTENT-TYPE : application/unknown
DATE : Mon, 08 Apr 2002 22:38:22 GMT
EXPLANATION : OK
HTTP_VERSION : HTTP/1.1
SERVER : Microsoft-IIS/4.0
STATUS_CODE : 200
_________________________________________________________
Do You Yahoo!?
Informaci�n de Estados Unidos y Am�rica Latina, en Yahoo! Noticias.
Vis�tanos en http://noticias.espanol.yahoo.com
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists