Curl useragent
-
First of all, thank you for developing the wonderfull plugin WebP Converter for Media!
On a couple of websites I encountered an error with rewriting from .htaccess and Pass Tru wasn’t working so I contacted the hosting company and they solved it by making a few adjustments on their side (firewall whitelist for this specific domain). They said it wasn’t possible for them to provide this solution to all of their customers, they said the code below has to be added to the pass-tru requests for it to work out of the box on their hosting:
curl_setopt( $ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (compatible; +WebP Converter for Media)’ );
Is it possible to add this to the plugin so other customers of this hosting company can also enjoy your plugin?
- The topic ‘Curl useragent’ is closed to new replies.