oasis-open / cti-taxii-client

OASIS TC Open Repository: TAXII 2 Client Library Written in Python
https://taxii2client.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
107 stars 51 forks source link

cti-taxii-client error requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: #103

Closed RobertPetrea78 closed 2 years ago

RobertPetrea78 commented 2 years ago

Hello everyone,

I'm trying to run this snippet: from taxii2client.v21 import Server server = Server('http://hailataxii.com/taxii-discovery-service', user='guest', password='guest') print(server.title)

but I receive error: requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://hailataxii.com/taxii-discovery-service/

What am I missing? Do I need to set something up first?

Thanks in advance!

chisholm commented 2 years ago

Looks like that's a TAXII 1.x service. This library only supports TAXII 2.x. You might try the older libtaxii library.

clenk commented 2 years ago

Closing due to inactivity. If this answer didn't help, please feel free to reopen.