Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
RdeHarder
Contributor II
Contributor II

Problem with post request using qlik rest connector

Hello all,

I am trying to POST a request to a server using the available Rest connector, I have my POST request working in Curl and Postman but I can not get it to work in Qlik.

I have the following simple Curl request:

curl --request POST "https://api.ctbps.nl/v3/OAuth/Token" -d "grant_type=client_credentials"

This returns the following error:  {"error":"unauthorized","error_description":"The client is unknown."} which is good.

However when I try to recreate this POST request in Qlik, configured as follows:

clipboard_image_1.png

I get the following error:

clipboard_image_0.png

 

I have also tried to use the query parameters to pass the grant_type but this resulted in the same invalid request error.

Can you tell me what I am doing wrong!

Many thanks in advance.

Labels (1)
1 Solution

Accepted Solutions
vunguyenq89
Creator III
Creator III

Hi,

Try configure your REST connector as follows:

  • Add a request header
    • Name: Content-Type
    • Value: application/x-www-form-urlencoded
  • Request body: grant_type=client_credentials

View solution in original post

2 Replies
vunguyenq89
Creator III
Creator III

Hi,

Try configure your REST connector as follows:

  • Add a request header
    • Name: Content-Type
    • Value: application/x-www-form-urlencoded
  • Request body: grant_type=client_credentials
RdeHarder
Contributor II
Contributor II
Author

Thanks a lot!

This solved the issue.