Copy link to clipboard
Copied
Hello!
I could see a string on the screen by <cfoutput> #cfhttp.FileContent# </cfoutput>.
But #cfhttp.FileContent# could not be handled as a string.
How can I extract a string from #cfhttp.FileContent#.
Thank you in advance!
Masaru
**********
<cfhttp method = "Get" url="http://xxx.xxx.xxx" >
<cfoutput>
#cfhttp.FileContent#
</cfoutput>
**********
I could solve the problem, just by using "GET" command with ".txt" file name.
Thanks!
<cfhttp
method = "Get"
url="http://xxxx.xxxx.xxxx"
path="D:\home\xxx.xxx\wwwroot\xxxx\"
file="XXXX.txt">
Copy link to clipboard
Copied
I could solve the problem, just by using "GET" command with ".txt" file name.
Thanks!
<cfhttp
method = "Get"
url="http://xxxx.xxxx.xxxx"
path="D:\home\xxx.xxx\wwwroot\xxxx\"
file="XXXX.txt">
Copy link to clipboard
Copied
You can parse response in cfhttp.FileContent depending upon the response type JSON/XML/Text