Page 1 of 1

Gow is possible to Read The Response Body of specific Request only?

Posted: Mon May 08, 2023 8:32 am
by bullsito
I see the demo with responsefiler but is too complicated and also i do not want to modify the body.

how is possible for all requests having the string "examplestring" in Url and is always a text/html content type to Log The response body?
For example would be nice if onResourceResponse event i could do the follow.Z

1) get the name of Requested Url
2) get the Body from this Resource.

is it possible to include a demo for this?
thank you.

Re: Gow is possible to Read The Response Body of specific Request only?

Posted: Mon May 08, 2023 6:48 pm
by dilfich
That's right, it's complicated. The example of "CopyScript" is important for you in the demo and do it. At least by Content-Type or url.

Re: Gow is possible to Read The Response Body of specific Request only?

Posted: Tue May 09, 2023 7:27 am
by bullsito
yeap everything is fine now.
then StreamCopyCompleteMsg(var aMessage : TMessage) has my fstream so i can save it to file thanks.