dgtlmoon / changedetection.io

The best and simplest free open source web page change detection, website watcher, restock monitor and notification service. Restock Monitor, change detection. Designed for simplicity - Simply monitor which websites had a text change for free. Free Open source web page change detection, Website defacement monitoring, Price change notification
https://changedetection.io
Apache License 2.0
15.79k stars 883 forks source link

[feature] Override received content-type (cant use jsonpath filter for some reason) #2443

Closed jerrywoo96 closed 1 week ago

jerrywoo96 commented 1 week ago

Version and OS 0.45.24 on linux/docker

Is your feature request related to a problem? Please describe. Received Content-Type is text/html, so it is parsed as text. < This is expected.

I want to override the content type so it can be parsed as json, as the body content is a json string, so that i can use jsonPath selectors. Since the Content-Type received is text/html, i cannot use jsonPath selectors on the json body as it is not parsed as json.

Describe the solution you'd like Add Content-Type Override. Or add parse response as json checkbox feature.

dgtlmoon commented 1 week ago

Hello

but this is not true, using the selector of json:$.hello I get 3 which is expected, even tho the content returned is text/plain

image

the filter

image

further

thanks

dgtlmoon commented 1 week ago

ahh my mistake, you get text/html let me test..

dgtlmoon commented 1 week ago

Works fine when the server returns text/html also

image