Imperva: solving reese84
Get Cookie
Task Object Structure
Param | Type | Required | Note |
---|---|---|---|
type | String | Yes | AntiImpervaTask |
websiteUrl | String | Yes | The website url |
userAgent | String | Yes | browser userAgent |
proxy | String | Yes | you need submit your proxy |
utmvc | Boolean | Optional | if cookie contains incap_see_xxx,nlbi_xxx,visid_inap_xxx ,mean is true |
reese84 | Boolean | Optional | if cookie conains reese84 ,set it true |
reeseScriptUrl | string | Optional | The URL typically has several dashes (-) and random words |
cookies | List | Optional | you can send your cookies |
reeseToken | string | Optional | If your reeseToken has expired, you can send current reeseToken to obtain a new reeseToken. |
Request Example
txt
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
json
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "AntiImpervaTask",
"websiteUrl":"https://example.com/",
"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
"proxy":"http:ip:port:user:pass"
"utmvc":true,// optional
"reese84":true,
"reeseScriptUrl":"https://exampe.com/mbit-And-Dirers-him",
"cookies":[
{
"name": "cookieName",
"value": "cookieValue"
}
]
}
}
Example Response
json
{
"errorId": 0,
"status": "idle",
"taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}
Getting Result
Use the getTaskResult method to get the recognition results
Depending on the system load, you will get the results within the interval of 1s
to 20s
Example request
txt
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
json
{
"clientKey": "YOUR_API_KEY",
"taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}
Example Response
json
{
"errorId": 0,
"errorCode": null,
"errorDescription": null,
"solution": {
"token": "xxxx"
},
"status": "ready"
}