Skip to content
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

Closed
vladsf opened this issue May 13, 2015 · 5 comments
Closed

Proxy support #46

vladsf opened this issue May 13, 2015 · 5 comments
Labels

Comments

@vladsf
Copy link

vladsf commented May 13, 2015

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?

@alexhass
Copy link

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.

@vladsf
Copy link
Author

vladsf commented May 14, 2015

I am not using Drupal. Recaptcha v. 1.0 has proxy support now, what was the point to remove it in v2.0?

@d2grenier
Copy link

I definitely need proxy support as well - tried implementing something using curl with the new API, but I couldn't get it working.

@wouldsmina
Copy link

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'
        );

@rowan-m
Copy link
Contributor

rowan-m commented Jul 29, 2018

Closing super old issues. Please re-raise if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants