AnsweredAssumed Answered

Fetch Report v.s. Scan Report

Question asked by Wei-Li Liu on Aug 11, 2012
Latest reply on Aug 14, 2012 by Eric Perraudeau

Hi,

 

I was trying to get the scan report using API call. I noticed something interesting. The scan report is different from fetach report.

If I want to get the scan report I make the url request

 

"https://qualysapi.qualys.com/msp/scan_report.php?ref=scan/13433434.3232"

 

But if I want to fetch the report, I make the curl request

 

curl -H "X-Requested-With: Curl Sample"

-b "QualysSession=71e6cda2a35d2cd404cddaf305ea0208; path=/api;

secure" "https://qualysapi.qualys.com/api/2.0/fo/report/

?action=fetch&id=1462"

 

I don't really know how to view the report in terms of downloading it or set up the email address to email the report using these api call.

I was able to run scan.php to complete scanning, but I am struggling to download the scan report by calling the api.

 

How do I use curl request or url request? Any help is appreciated, thanks.

Outcomes