on 2017 Nov 09 3:35 PM
I have a function to get data from a webservice. It seems to reach out for http, but for https it is throwing an error.
SET @CMD = STRING('https://username:password@website.com/jsoncmd?timeRange=11/06/2017%2000:05~11/06/2017%2000:09')
SET @RET = f_dans_web_client_function(@cmd)
error is The URI https://username:password@website.com/jsoncmd?timeRange=11/06/2017%2000:05~11/06/2017%2000:09 is invalid SQLCODE=-980, ODBC 3 State="HY000"
But I can do this http to other sites. And my URL works if I put it into a browser
Request clarification before answering.
Your https call is missing a CERTIFICATE clause, cf. that question.
In contrast to your browser, SA web client functions need to explicitly specify the certificate of the according web server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the definition of the function:
ALTER FUNCTION "TM38"."f_dans_web_client_function"( in iScriptName varchar(500) ) returns long varchar url '!iScriptName' type 'HTTP:GET'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.