File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ def test_api
18
18
d [ 'pageurl' ] = 'https://your-site.com'
19
19
d [ 'sitekey' ] = '1c7062c7-cae6-4e12-96fb-303fbec7fe4f'
20
20
# d['invisible'] = '1' # if invisible hcaptcha - optional
21
+
22
+ # extra parameters, useful for enterprise
23
+ # submit userAgent from requests too, when this is used
24
+ # d['HcaptchaEnterprise'] = {'rqdata': 'take value from web requests'}
25
+
21
26
# d['proxy'] = '126.45.34.53:123' # - HTTP proxy - optional
22
27
# d['user_agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' # optional
23
28
captcha_id = ita . submit_hcaptcha d
Original file line number Diff line number Diff line change @@ -376,6 +376,11 @@ def submit_hcaptcha(d)
376
376
377
377
url = HCAPTCHA_ENDPOINT
378
378
379
+ # proxy
380
+ if d . key? 'HcaptchaEnterprise'
381
+ d [ 'HcaptchaEnterprise' ] = JSON . generate ( d [ 'HcaptchaEnterprise' ] )
382
+ end
383
+
379
384
# affiliate id
380
385
if @_affiliateid . to_s != '0'
381
386
d [ "affiliateid" ] = @_affiliateid . to_s
You can’t perform that action at this time.
0 commit comments