Hi All,
I'm trying to get some report data out of VM, I've followed the API references, but everytime I try to access the API cURL returns
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2012-08-02T05:30:49Z</DATETIME>
<CODE>2000</CODE>
<TEXT>Bad Login/Password</TEXT>
</RESPONSE>
</SIMPLE_RETURN>
I'm using the following statement to try to retrieve a list of reports - curl -H "X-Requested-With: Curl Sample" -b "QualysSession=<<TRUNCATED>>; path=/api; secure" "https://qualysapi.qualys.com/api/2.0/fo/report/?action=list"
I've also tried to add -u user:pass to the above, and --anyauth, but they still return the same result.
I've enabled access through both the gui and API for the user, and the user does not have two-factor auth or client certs enabled.
Any ideas on what I'm missing?
Cheers
Moved to developer area. I'll have someone take a look. Regards, Robert