You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a heads up, I noticed a TAXII 2.0 feed hosted by Anomali returns a 301 redirect to the actual endpoint. Since you use raise_for_status in the code it expects a 2xx error code to assume success.
Also one other quirk about requests is even if you handle this, the redirected endpoint doesn't get the authentication passed on. There is a workaround where you have to retrieve the redirect response location header value, and rebuild the request with auth. Since you are using session maybe you don't need to do that.
Anyways this will inevitably frustrate someone to no end, I ended up building my own version of a TAXII2.x client in python to work around this issue. If you get some time to fix.
Thanks,
The text was updated successfully, but these errors were encountered:
Hi friends,
Just a heads up, I noticed a TAXII 2.0 feed hosted by Anomali returns a 301 redirect to the actual endpoint. Since you use raise_for_status in the code it expects a 2xx error code to assume success.
Endpoint advertised by Anomli: https://limo.anomali.com/taxii
Redirection point: https://limo.anomali.com/api/v1/taxii2/taxii/
General info (its free): https://www.anomali.com/resources/limo
Also one other quirk about requests is even if you handle this, the redirected endpoint doesn't get the authentication passed on. There is a workaround where you have to retrieve the redirect response location header value, and rebuild the request with auth. Since you are using session maybe you don't need to do that.
Anyways this will inevitably frustrate someone to no end, I ended up building my own version of a TAXII2.x client in python to work around this issue. If you get some time to fix.
Thanks,
The text was updated successfully, but these errors were encountered: