Update libcurl-impersonate usage#4535
Conversation
1f447cd to
2f5de87
Compare
|
i was hoping we could keep this change removes the http user agent for non-curl-impersonator usage which might break some fetching. (default ua is
|
6273e0f to
462dbf8
Compare
I can see that, but you could also make a point that Also, I would imagine any alternative client would need to incorporate some of their own anti-bot measures, possibly with another set of headers, so if we consider the current set of default headers as curl-specific, I think it makes sense to keep them all sealed off in It would be hard to fix the libcurl-impersonate usage without the refactoring I did.
Indeed, fixed it. |
libcurl-impersonate was not being used properly, as the code was overriding the headers set by it to prevent detection. - update the libcurl-impersonate to an actively managed lexiforest fork - impersonate Chrome 131 - move the defaultHttpHeaders to http.php, where it belongs - only set defaultHttpHeaders if curl-impersonate is not detected - make useragent ini setting optional and disabled by default - add necessary documentation updates
|
thanks for helping to keep this up to date. |
|
@dvikan I found by accident that https://github.com/RSS-Bridge/rss-bridge/blob/master/bridges/FB2Bridge.php reads the I don't know why |
|
yes dont worry about it, I will check whether the bridge works or not |
Overhaul the usage of libcurl-impersonate, which was not, in fact, being used properly, as the code was overriding the headers set by it to prevent detection.