Highlighted

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

New Here ,
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>

**********

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

Views

212

Likes

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

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

New Here ,
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>

**********

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

Views

213

Likes

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
Jan 25, 2018 0
New Here ,
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">

Likes

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
Reply
Loading...
Jan 26, 2018 0
vjindal LATEST
New Here ,
Jan 26, 2018

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Jan 26, 2018 0