How to get response body

Post Reply
ForestListener
Posts: 22
Joined: Sun Jul 07, 2019 1:46 pm

How to get response body

Post by ForestListener » Sat Nov 02, 2019 7:27 pm

Hello.

Please, help.

How to get a response body html/Json?

For example, i push Webpage button to show company contacts, the browser sending a request to obtain this contacts. I want to get this response body text and save it to a file (not a Webpage HTML, only the request HTML).

Thank you!
Last edited by ForestListener on Mon Nov 04, 2019 6:18 am, edited 1 time in total.

User avatar
salvadordf
Posts: 1950
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to get response body

Post by salvadordf » Sun Nov 03, 2019 9:59 am

Hi,

The easiest way to get the results from a request is to use a URLRequest. The URLRequest demo has all the code to send and receive custom requests.

If you can't use a URLRequest then you need to use a "filter" to get the body of that request. See the ResponseFilterBrowser demo for more details.

ForestListener
Posts: 22
Joined: Sun Jul 07, 2019 1:46 pm

Re: How to get response body

Post by ForestListener » Mon Nov 04, 2019 6:17 am

Thank you!

Post Reply