Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register 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
Partner - Champion III
Partner - Champion III

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

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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

Sivanesan
Partner - Contributor III
Partner - Contributor III

Thanks @swuehl for this answer. How can we do this for Qlik Geo Analytics connector?