Google recaptcha V2 supported content types

 ̄綄美尐妖づ 提交于 2020-02-02 04:14:05

问题


When querying the state of the "I'm not a robot" user challenge, you have to make a POST request to https://www.google.com/recaptcha/api/siteverify passing your secret key and the response token to know the result of the challenge. But it is undocumented which Content-Types (MIME types) are supported. I guess every common MIME type is supported (application/x-www-form-urlenconded, application/json, application/xml), but, just for curiosity,

  • Which are the Content-Types supported by siteverify?
  • Or is that "supported mime types" list for POST request standarized somehow?

回答1:


I could not make application/json with a JSON encoded request function, but I was able to use application/x-www-form-urlencoded and verify it still works as it used to after substituting newer parameter names and https for http.



来源:https://stackoverflow.com/questions/39707075/google-recaptcha-v2-supported-content-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!