Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class CaptchaValidator : ICaptchaValidator
private readonly HttpClient _httpClient;
public CaptchaValidator(HttpClient httpClient)
_httpClient = httpClient;
public async Task<CaptchaResponse> ValidateCaptchaAsync()
_httpClient.BaseAddress = new Uri("");
_httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage response = await _httpClient.GetAsync($"recaptcha/api/siteverify");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.