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

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

New Here ,
Jan 25, 2018 Jan 25, 2018

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>

**********

Views

368

Translate

Translate

Report

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

Votes

Translate

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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
Documentation