Forum Discussion
Pouria
5 years agoRegular Visitor
Error accessing data from Web but works with Postman!
hello Guys, this is my first time on this community and first question, so sorry if i dont know some ruls in here 🙂 I am trying to use this URL: https://qualysapi.qualys.eu/api/2.0/fo/scan/?acti...
- Anonymous5 years ago
Hi Pouria ,
Could you please provide the related screenshot about the step <"Fetch" request>? By the way, did you also add the custom header "X-Requested-With" when connect to data source?
Best Regards
Anonymous
5 years agoNot applicable
Hi Pouria ,
Could you please provide the related screenshot about the step <"Fetch" request>? By the way, did you also add the custom header "X-Requested-With" when connect to data source?
Best Regards
Pouria
5 years agoRegular Visitor
hallo Anonymous,
sure, i can provide you with more details:
My powerBi Inputs are:
URL:
https://qualysapi.qualys.eu/api/2.0/fo/scan/?action=
fetch&scan_ref=scan/1621433037.28987&output_format=csv
headers:
Authorization > Basic bnR0Y20tcG06I05UVHNlYzEyMw==
X-Requested-With > Sample
which doesnt work.
However, the same input works in Postman:
URL:
curl -L -m 2 -X POST 'https://qualysapi.qualys.eu/api/2.0/fo/scan/' -H 'X-Requested-With: QualysPostman' -H 'Authorization: Basic bnR0Y20tcG06I05UVHNlYzEyMw==' -F 'action="fetch"' -F 'scan_ref="scan/1621433037.28987"' -F 'output_format="csv"'
(please see the attachment)
(please see the attachment)