AnsweredAssumed Answered

API v2 - Code 2000 Bad User/Password

Question asked by aweddell on Aug 1, 2012
Latest reply on Dec 14, 2018 by david.sutherin

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






    <TEXT>Bad Login/Password</TEXT>




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" ""


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?