简体   繁体   中英

Save response type “Content-Type : text/javascript” in text file

I am getting some response of HTTP request.

Response header is "Content-Type : text/javascript" and some response body.

I want to save this response body in text file as "a.txt".

Can I do it ? I have "C" files in which I have to do it.

Regards PJ

There are many file operations which allow you to save a buffer into a file.

PS: The above solution as simple as it may sound, your question is still vague. What is the exact problem you are trying to solve?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM