Incapsula/Imperva: solving reese84
Get Cookie
Task Object Structure
Param | Type | Required | Note |
---|---|---|---|
type | String | Yes | AntiImpervaTask ,AntiImpervaTaskProxyLess |
websiteUrl | String | Yes | The website url |
userAgent | String | Yes | browser userAgent |
proxy | String | Optional | if type is AntiImpervaTask ,you need submit it |
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 | Yes | The URL typically has several dashes (-) and random words |
reeseToken | string | Optional | If your reeseToken has expired, you can send current reeseToken to obtain a new reeseToken. |
Request Example
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "AntiImpervaTaskProxyLess",
"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"
"utmvc":true,// Optionnal
"reese84":true,
"reeseScriptUrl":"https://exampe.com/mbit-And-Dirers-him?d=exampe.com",
"cookies":[
{
"name": "cookieName",
"value": "cookieValue"
}
]
"proxy":"http:ip:port:user:pass" //Optionnal
}
}
Example Response
{
"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
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}
Example Response
{
"errorId": 0,
"errorCode": null,
"errorDescription": null,
"solution": {
"token": "xxxx"
},
"status": "ready"
}