POST
I need to make an API request to Google
the URL:
https://www.google.com/recaptcha/api/siteverify?secret=ACA_LA_CLAVE&remoteip=IP&response=KEY_RESPONSE
I would like to do it without using a specific gem for that API GOOGLE
but as close to what Ruby
2.2.0 brings by default, if possible.
I got it, doing the following, but I don't know if it's a good practice:
Even though I end up using cURL , this is a script used to make a post in
Ruby
, remember to set your credentials and content type:You can use the nice_http gem that will simplify the process: https://github.com/MarioRuiz/nice_http