Menu

test : Testmethode voor debuggen

Deze methode leest AJAX POST aanvraagdata, plaatst het en voert het uit als array. Het voert ook post data uit in raw formaat. U kunt dit gebruiken om uw code te debuggen.

Adres: https://api.anti-captcha.com/test
Methode: POST
Content-type: application-json

Voorbeeld aanvraag

curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
"clientKey":"myClientKey",
"hello" : "world",
"apitest" : true
}' https://api.anti-captcha.com/test

Voorbeeld reactie

HTTP/1.1 200 OK
Server: nginx/1.12.1
Date: Tue, 24 Oct 2017 21:25:57 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

Parsed input JSON:
Array
(
    [clientKey] => myClientKey
    [hello] => world
    [apitest] => 1
)
Raw POST input:
{
"clientKey":"myClientKey",
"hello" : "world",
"apitest" : true
}