Table of Contents

Class CaptchaHttpRequestExtensions

Namespace
NuvTools.Security.Captcha
Assembly
NuvTools.Security.dll

Attaches the CAPTCHA token and mode headers to an outgoing request, so the server-side filter can verify them.

public static class CaptchaHttpRequestExtensions
Inheritance
CaptchaHttpRequestExtensions
Inherited Members

Methods

AddCaptchaToken(HttpRequestMessage, string?, string?)

Adds the TokenHeader and ModeHeader headers to the request. Empty values are skipped, leaving the header absent.

public static void AddCaptchaToken(this HttpRequestMessage request, string? token, string? mode = null)

Parameters

request HttpRequestMessage

The request to attach the headers to.

token string

The token produced by the CAPTCHA provider.

mode string

ModeScore or ModeCheckbox.