Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Add User-Agent header in REST connector

I'm trying to use the REST connector with the GitHub API e.g.

https://api.github.com/repos/robwunderlich/qlikview-components/releases

The connect fails with a response 403 due to a missing User-Agent header required by the api (http://developer.github.com/v3/#user-agent-required).

I can fake in a header using a tool like Fiddler as workaround for testing, but that's not a permanent resolution.  Is there a way I can configure the connector to insert a User-Header?

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Doesn't adding 'User-Agent' and an appropriate value in the Query Headers section of the REST Connection configuration screen work?

The documentation gives Accept-Language as an example. User-Agent is just another http request header afaik.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Doesn't adding 'User-Agent' and an appropriate value in the Query Headers section of the REST Connection configuration screen work?

The documentation gives Accept-Language as an example. User-Agent is just another http request header afaik.


talk is cheap, supply exceeds demand
swuehl
MVP
MVP

As Gysbert already pointed to, using the Query Header should work:

CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=https://api.github.com/repos/robwunderlich/qlikview-components/releases;timeout=30;method=GET;autoDe...;queryHeaders=User-Agent%2swuehl;PaginationType=None;XUserId=AXaNfZdOVLZQGWBL;XPassword=IEZeUSUEQLYGXZdOPTcIWSIGIDZOXbdFRBMATSEGfA;";

2016-10-22 15_09_20-QlikView x64 - [E__Users_Stefan_Downloads_Demo_Problem.qvw_].png

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP
Author

I can't believe I didn't scroll down far enough in the config screen (or the doc) to see that! Thanks to you both. It works a charm.

-Rob