New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy support #46
Comments
I have solved this by creating my own RequestMethod for Drupal 6/7/8 modules and it now uses Drupal internal http requests and no longer the limiting library RequestMethod's. |
I am not using Drupal. Recaptcha v. 1.0 has proxy support now, what was the point to remove it in v2.0? |
I definitely need proxy support as well - tried implementing something using curl with the new API, but I couldn't get it working. |
it's an old issue but it could still be used today... I use recaptcha behind a proxy too. I used curl request method with a small modification in src/ReCaptcha/RequestMethod/CurlPost.php:79 $options = array(
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $params->toQueryString(),
CURLOPT_HTTPHEADER => array(
'Content-Type: application/x-www-form-urlencoded'
),
CURLINFO_HEADER_OUT => false,
CURLOPT_HEADER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_HTTPPROXYTUNNEL => true,
CURLOPT_PROXY => 'proxy.domain.tld:3128'
); |
Closing super old issues. Please re-raise if still relevant. |
Older (ver 1.0) has proxy support -
define("RECAPTCHA_HTTP_PROXY", "proxy.foo.com");
define("RECAPTCHA_USE_PROXY", true);
do you plan to have this in ver 2.0?
The text was updated successfully, but these errors were encountered: