从coldfusion调用AWS API Gateway

时间:2017-06-20 07:36:39

标签: amazon-web-services lambda https coldfusion aws-api-gateway

我试图通过AWS API Gateway在AWS Lambda中调用一个死的简单函数。 这是我试图达到的网址: https://rt5b22m3l4.execute-api.us-east-1.amazonaws.com/dev/hello

我在浏览器中调用它并且工作正常。但是当我使用coldfusion 10:

<cfscript>
    httpService = new http(method = "GET", charset = "utf-8", url = "https://rt5b22m3l4.execute-api.us-east-1.amazonaws.com/dev/hello");

    httpService.addParam(name="accept-encoding", value="deflate;q=0", type="header");
    httpService.addParam(name="te", value="deflate;q=0", type="header");

    result = httpService.send().getPrefix();
    response = result.fileContent.toString();
    writeDump(result);
</cfscript>

它总是让我回头

ErrorDetail I/O Exception: peer not authenticated

非常感谢任何帮助。谢谢。

0 个答案:

没有答案