【问题标题】:HCL Nomad Web: HTTP Response content type unsupportedHCL Nomad Web:不支持 HTTP 响应内容类型
【发布时间】:2021-11-08 20:53:54
【问题描述】:

我有一个带有 java 代理的 Notes 数据库,它接收 HTTP POST 请求并返回纯文本作为响应。

Java 代理代码的一部分,用于初始化输出、设置内容类型并将字符串放入输出。

    try {
        this.output = this.getAgentOutput();
        output.println("Content-Type: text/plain; charset=utf-8");
        
        output.println("ABCDEFGH");
        
    } finally {
        output.flush();
        output.close();
    }

发送 POST 请求并读取响应的客户端 LotusScript 的一部分:

Set webRequest = session.CreateHTTPRequest()
webRequest.preferstrings  = True
serverResponse = webRequest.post(serverUrl, jsonPayload) 

此代码在 HCL Notes 客户端中完美运行。但是当我尝试从 HCL Nomad Web 运行相同的 LotusScript 代码时,我收到错误消息:

HTTP Response content type unsupported

如果不支持简单的文本/纯文本,我不明白什么内容类型适合 HCL Nomad Web。

有什么想法吗?

【问题讨论】:

    标签: java lotusscript hcl-notes


    【解决方案1】:

    Nomad Web 尚不支持 NotesHTTPRequest 类。

    【讨论】:

    • 谢谢。你有任何官方文档的链接吗?
    • 刚刚得到 HCL 的确认,这是真的。谢谢。
    猜你喜欢
    • 2011-08-14
    • 2012-04-21
    • 2011-09-30
    • 2020-05-29
    • 2018-09-05
    • 1970-01-01
    • 2016-03-08
    • 2014-06-01
    • 1970-01-01
    相关资源
    最近更新 更多