Skip to content

Commit

Permalink
Merge pull request #280 from sshanks-kx/httpclient
Browse files Browse the repository at this point in the history
.Q.hp and .Q.hg response is a string
  • Loading branch information
JosieMD authored May 28, 2024
2 parents 17f49bb + 182ca38 commit ff8bcda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ref/dotq.md
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ Saves all tables by calling `.Q.dpft`, clears tables, and sends reload message t
.Q.hg x
```

Where `x` is a URL as a symbol atom or (since V3.6 2018.02.10) a string, returns as a list of strings the result of an HTTP[S] GET query.
Where `x` is a URL as a symbol atom or (since V3.6 2018.02.10) a string, returns a string for the result of an HTTP[S] GET query.
(Since V3.4)

```q
Expand Down Expand Up @@ -1081,9 +1081,11 @@ Where
- `y` is a MIME type as a string
- `z` is the POST query as a string

returns as a list of strings the result of an HTTP[S] POST query.
Returns a string for the result of an HTTP[S] POST query.
(Since V3.4)

Uses proxy settings if defined, as described in [hg (HTTP get)](#hp-http-get).

```q
q).Q.hp["http://google.com";.h.ty`json]"my question"
"<!DOCTYPE html>\n<html lang=en>\n <meta charset=utf-8>\n <meta name=viewpo..
Expand Down

0 comments on commit ff8bcda

Please sign in to comment.