https://learninghub.kx.com/forums/topic/access-to-http-status-code-from-q-hmb-call
Is there a way to access the HTTP status code (ex: HTTP/1.1 200 OK) after a call to .Q.hmb?
Thanks
https://learninghub.kx.com/forums/topic/access-to-http-status-code-from-q-hmb-call
Is there a way to access the HTTP status code (ex: HTTP/1.1 200 OK) after a call to .Q.hmb?
Thanks
.Q.hmb
, return is two strings, first one is HTTP response headers:q).Q.hmb["https://httpbin.org/get";`GET;()] "HTTP/1.1 200 OKrndate: Fri, 05 Aug 2022 13:14:33 GMTrncontent-type: appl.. "{n "args": {}, n "headers": {n "Accept-Encoding": "gzip", n..
q)r:.Q.hmb["https://httpbin.org/get";`GET;()] q)first "rn" vs r[0] "HTTP/1.1 200 OK"
I was using q v3.4 and getting only 1 string back from .Q.hmb. When I used q v4.0, I got the 2 string response you mentioned. Thank you for the help.