With .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..
So it’s simple enough to extract the status:
q)r:.Q.hmb["https://httpbin.org/get";`GET;()] q)first "rn" vs r[0] "HTTP/1.1 200 OK"