DotQ/DotQDothg

From Kx Wiki
Jump to: navigation, search

301 Permanent move

This article is now at code.kx.com/q/ref/dotq/#qhg-http-get

Please update your bookmark. The old wiki will remain here for a while. If you prefer it to the new format, please tell the Librarian why.

.Q.hg (Added in kdb+ v3.4)

.Q.hg is a convenience function for performing an http[s] GET query. It expects a single argument, the url of interest. e.g.

q).Q.hg`:http://www.google.com

If you have configured ssl/tls, https can also be used, e.g.

q).Q.hg`:https://www.google.com

It will utilize proxy settings from the environment, lowercase versions taking precedence:

HTTP_PROXY, http_proxy: the url of the HTTP proxy to use
NO_PROXY, no_proxy: comma-separated list of domains for which to disable use of proxy

n.b. https is not supported across proxies which require 'CONNECT'.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox