[Feature Request] Proposal to allow using requesting useragent
Search engines sometimes change their results based on the useragent sent. I'm wondering if some people might be interested in changing to CURLOPT_USERAGENT => $_SERVER["HTTP_USER_AGENT"] ?? ... (if enabled).
The reason I've proposed this is because I'm getting weird results from some engines using the default user agent (results from one website (in the case of Bing) that has little or nothing to do with the query). Upgrading the useragent (or just using my own) returns Bing's response to normal, same with other engines.
I think proposing another config variable as to whether to spoof useragents in requests would be easy to extend while providing complete backwards-compatibility. Eg., CONFIG_SPOOF_USERAGENT=true (the default, to use the agent provided by Docker env or config.php editing, etc). If CONFIG_SPOOF_USERAGENT=false then just feed $_SERVER["HTTP_USER_AGENT"] or fallback to the same behavior that has been in LibreY.