Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
AnilSurendran
Contributor II
Contributor II

Run Qlik task using curl command

I am trying to run a Qlik replicate task using curl command. But I am getting error while obtaining SESSION ID. Can someone please post an example of obtaining session id and running a qlik replicate task using curl command.

Labels (2)
1 Solution

Accepted Solutions
AnilSurendran
Contributor II
Contributor II
Author

Hi Suresh, It worked! Issue was with the domain. Thank you!

View solution in original post

8 Replies
sureshkumar
Support
Support

Hello Team,

Using Qlik Enterprise Manger API, you can run curl commands.

Refer: Login | Qlik Enterprise Manager Help

 

Regards,

Suresh

kng
Support
Support

 

Hello team,

Please do check with the below link for running a task using API

https://help.qlik.com/en-US/enterprise-manager/November2022/pdf/Enterprise-Manager-API-Guide.pdf
page-89

Regards,
Shivananda

AnilSurendran
Contributor II
Contributor II
Author

Thanks Suresh and Shivananda!

While running curl command for running the task, I am getting the error "HTTP Error 400. The request has an invalid header name"

sureshkumar
Support
Support

Hello Anil,

use 64base encode to encode user and password
For example

user: abc
domain: qliktech.com
password: 1234567890

1. Use base64 tool to encode abc@qliktech.com:1234567890. Following code will be generated.

YWJjQHFsaWt0ZWNoLmNvbToxMjM0NTY3ODkw

2. curl -i -k --header "Authorization: Basic YWJjQHFsaWt0ZWNoLmNvbToxMjM0NTY3ODkw" https://your_server/attunityenterprisemanager/api/V1/login

 

Regards.

Suresh

 

AnilSurendran
Contributor II
Contributor II
Author

Sorry for the delay to reply. Was out of town! I tried accessing session id and I am getting the response

307 Temporary Redirect

 

and it's not displaying EnterpriseManager.APISessionID.

Can you please let me know what could be the problem?

 

sureshkumar
Support
Support

Hello Anil,

Please open a support ticket with us to analyze further.

Regards,
Suresh

AnilSurendran
Contributor II
Contributor II
Author

Hi Suresh, It worked! Issue was with the domain. Thank you!

sureshkumar
Support
Support

Hello Anil,

Glad to hear that it worked, Please "Accept as Solution" if possible.

Regards,

Suresh