Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
kaleem287
Contributor
Contributor

Qlik Sense REST Call Using POST/JSON

I am trying to send http post(json) request from qlik sense(load editor) to some python script but getting error message. Please support to fix this error.

REST Connection: Successful
Note: URL is tested via postman and working perfectly 

Please find below code snippet and snap for error message. 

LIB CONNECT TO 'REST_httpswww.###########';

RestConnectorMasterTable:
SQL SELECT
"username",
"password"
FROM JSON
WITH CONNECTION (
HTTPHEADER "Content-Type" "application/json",
METHOD "POST",
URL "https://www.abc.com/test.php",
BODY '{"username":"value1","password":"value2"}'
);

qlik-sense-rest-error.png

Labels (1)
1 Reply
SterreKapteijns
Partner - Creator
Partner - Creator

Whenever I received this error, it had to do with the quotes around the request body. I think you need double quotes in stead of single quotes. 

Solved: Re: WITH CONNECTION statement - BODY with Double q... - Qlik Community - 1237635