Forum Discussion
Error accessing data from Web but works with Postman!
- 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
hi yingyinr,
thank s for your answer, Ive read and used that Doc. It works and I haved also transfered data from Qualys to PowerBi with that.
But almost everywher that I have a "Fetch" request it doesnt work.
Do you have any Idea there?
regards,
Pouria
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
- Pouria5 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)āā
ā