Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to extract a mid-string from #cfhttp.FileContent#?

New Here ,
Jan 25, 2018 Jan 25, 2018

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>

**********

424
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Jan 26, 2018 Jan 26, 2018

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">

Translate
New Here ,
Jan 26, 2018 Jan 26, 2018

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">

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 26, 2018 Jan 26, 2018
LATEST

You can parse response in cfhttp.FileContent depending upon the response type JSON/XML/Text

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources