Have any possibility change "g-recaptcha-response" name

1,955 views
Skip to first unread message

陳傳興

unread,
Jan 8, 2015, 9:34:33 PM1/8/15
to reca...@googlegroups.com
Hi

I want integrate new reCAPTCHA in .NET MVC Web site,
but g-recaptcha-response name in .NET is trouble,
.NET property or  VAR name cann't have "-",
Have any possibility change "g-recaptcha-response" name?

Thanks

محمد حسین

unread,
Jan 9, 2015, 3:33:49 AM1/9/15
to reca...@googlegroups.com

You can use grecaptcha.getResponse() to get the response value in client side and set it to any variable you like in the page.

Aaron Knott

unread,
Jan 12, 2015, 2:47:28 AM1/12/15
to reca...@googlegroups.com
You can use GetParam("g-recaptcha-response") while in your controller and set it to any variable. 

azhur...@india.com

unread,
Jan 29, 2015, 8:45:57 AM1/29/15
to reca...@googlegroups.com
Why do you have to?

on the server side

var response = filterContext.HttpContext.Request["g-recaptcha-response"];
var client = new WebClient();
var reply = client.DownloadString(
                string.Format("https://www.google.com/recaptcha/api/siteverify?secret={1}&response={2}", secretkey, response));

Michael Ciffone

unread,
Jun 25, 2017, 2:10:04 AM6/25/17
to reCAPTCHA
I defer to the question/comment that azhur...@india.com where they posit that on server side:
var response = filterContext.HttpContext.Request["g-recaptcha-response"];
var client = new WebClient();
var reply = client.DownloadString(
                string.Format("https://www.google.com/recaptcha/api/siteverify?secret={1}&response={2}", secretkey, response));
Reply all
Reply to author
Forward
0 new messages