在 MarkLogic 中关闭来自 v1/eval API 的额外响应标头

问题描述 投票:0回答:0

在 MarkLlogic 中,当调用

v1/eval
端点时,响应中会出现“额外的标头”,这些标头不会被
--silent
标志抑制。

例子:

curl --silent -u user:pass --digest -X POST --data [email protected] http://localhost:8000/v1/eval

test.xqy包含

(1, 2, 3)

类似的结果:

--e17f2058da4654f7
Content-Type: text/plain
X-Primitive: integer

1
--e17f2058da4654f7
Content-Type: text/plain
X-Primitive: integer

2
--e17f2058da4654f7
Content-Type: text/plain
X-Primitive: integer

3
--e17f2058da4654f7--

想要的结果是:

1
2
3

解析和清理非常费力,尤其是在 shell 脚本中。

是否有任何方法可以通过将附加选项传递给 curl 或传递给

v1/eval
端点来清理响应?

curl marklogic
© www.soinside.com 2019 - 2024. All rights reserved.