When we execute the cURL command to fetch the Datafeed we get an error - " 416 Cursors is not set. You must request a cursor reset first"
Example:
curl -u "Username:Password" -vvv "https://datafeeds.emailsecurity.symantec.com/all"
< HTTP/1.1 416
* Connection #0 to host datafeeds.emailsecurity.symantec.com left intact
Cursors is not set. You must request a cursor reset first.
Email Threat Detection and Response
This error is returned if the cursor is invalid or missing, you must reset the cursor before you fetch the Datafeed.
Ensure that you save and pass-in cookies when you execute the cURL command.
Reset/set the cookie (Change the start date from where you want to fetch the data)
curl -v -c cookieJar --basic --user "Username:Password" https://datafeeds.emailsecurity.symantec.com/all?reset=2022-11-20T00:00:00Z
Use the cookie (You can replace the URL specified in additional information)
curl -v -b cookieJar --basic --user "Username:Password" https://datafeeds.emailsecurity.symantec.com/all
The Data Feeds API's available feeds:
https://datafeeds.emailsecurity.symantec.com/all
https://datafeeds.emailsecurity.symantec.com/malware
https://datafeeds.emailsecurity.symantec.com/test
https://datafeeds.emailsecurity.symantec.com/spam
https://datafeeds.emailsecurity.symantec.com/delivery
https://datafeeds.emailsecurity.symantec.com/isolation
https://datafeeds.emailsecurity.symantec.com/clicktime
https://datafeeds.emailsecurity.symantec.com/ec_reports