AnsweredAssumed Answered

Missing required parameter(s): action

Question asked by Matheus Gonçalves on Sep 15, 2018
Latest reply on Nov 14, 2018 by jean-christophe rosier

Hi guys,

 

Recently, i coded a script to make a integration with objective to launch a scorecard of Most Vulnerable Hosts Report in Qualys API.

 

But..the request shows me the error could you find in title.

 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qg3.apps.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2018-09-16T02:04:23Z</DATETIME>
<CODE>1903</CODE>
<TEXT>Missing required parameter(s): action</TEXT>
</RESPONSE>
</SIMPLE_RETURN>

 

 

but, i did another request with same paramters and retornet this:

 

{
"args": {},
"data": "action=launch&echo_request=0&output_format=xml&name=Most+Vulnerable+Hosts+Report",
"files": {},
"form": {},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Authorization": "Basic c2FxdWUzc2E6N2F5SjFQOG4kVmE4MFg5SA==",
"Connection": "close",
"Content-Length": "80",
"Content-Type": "text/xml",
"Host": "httpbin.org",
"User-Agent": "Test API Qualys Integration",
"X-Requested-With": "saque3sa"
},
"json": null,
"origin": "xxxxxxxxxxx",
"url": "http://httpbin.org/post"
}

 

 

So, we can that "action" paramter already ok..

 

What i need to do more than?... 

I need help!!!

 

Thanks about everything..

 

This is my script below:

 

My python script to make HTTP request that i'm using

Outcomes