cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP_PROXY: proxy.foo.com or proxy.foo.com:912

ag1
New Contributor

http://code.kx.com/wiki/DotQ/DotQDothg 


If the http proxy has a port # associated with it, will this work in q?  or does HTTP_PROXY only expect a url and not a port # e.g.  proxy.company.com


bash$
export HTTP_PROXY="proxy.company.com:912"

q
).Q.hg`$"www.google.com"
'domain
  [0]  .Q.hg`
$"www.google.com"
       
^


1 REPLY 1

sohagan
New Contributor
Hi ag,

ensure you prefix the proxy with http://
ensure you prefix the url with http://
ensure your url is hsym'ed (prefixed with 🙂 `$"www.google.com" should be `$":www.google.com"
ports will work fine

e.g.
q).Q.hg`:http://www.google.com
'www.google.com. OS reports: No route to host

q)setenv[`http_proxy]"user:pass@proxy.com:port/"
q).Q.hg`:http://www.google.com
'domain

q)setenv[`http_proxy]"http://user:pass@proxy.com:port/"
q).Q.hg`:http://www.google.com
"<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=ut..

HTH,
Sean