Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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.
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;";
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