Cheers Robert.

Wayne

> On 2 May 2020, at 12:11 am, Robert Shubert <[email protected]> wrote:
>
> Thanks Wayne,
>
> I'll see if I can get this addressed.
>
> Robert
>
> From: Wayne Irvine [mailto:[email protected]]
> Sent: Friday, May 01, 2020 6:58 AM
> To: [email protected]
> Subject: Re: TeraScript-Talk: Echo
>
> I have to use the external script as Web Call is giving an SSL Handshake 
> error:
> Error
>
> An error occurred while processing your request:
> File: tdtest.taf
> Position: WebCall2
> Class: Internal
> Main Error Number: -1001
>
> Unable to send data when processing URL request.
> wrong when connecting with SSL SSL peer handshake failed, the server most 
> likely requires a client certificate to connect
>
> File: tdtest.taf
> Position: WebCall2
> Class: Internal
> Main Error Number: -1001
>
> Unable to send data when processing URL request.
> This just started happening on previously working code in November last year. 
> I guess some certificate has expired or something.
>
> Wayne
>
>
>
>> On 1 May 2020, at 11:52 pm, Robert Shubert <[email protected] 
>> <mailto:[email protected]>> wrote:
>>
>> As of 6.2, the @URL tag and the Web Call action both utilize cURL under the 
>> hood. It's better to use the native implementation than an external bash 
>> script. Is there some reason you need to do the external script?
>>
>> Robert
>>
>> From: Wayne Irvine [mailto:[email protected] 
>> <mailto:[email protected]>]
>> Sent: Friday, May 01, 2020 12:34 AM
>> To: [email protected] <mailto:[email protected]>
>> Subject: Re: TeraScript-Talk: Echo
>>
>> Cheers!
>>
>> Makes for a much simpler workflow.
>>
>> Wayne
>>
>>> On 1 May 2020, at 5:18 pm, [email protected] <mailto:[email protected]> wrote:
>>>
>>> If using MacOS bash, the Command Line external call action in TS outputs 
>>> results into @@resultset as an array.
>>> A bash script file ( /usr/local/var/www/website/scripts/get_google.sh ) can 
>>> be called in the external action's "command" field:
>>> #!/bin/bash
>>> curl "https://www.google.com/"; <https://www.google.com/>
>>>
>>> echo is not required for output
>>> The curl output in this case can then be viewed in html with <@var 
>>> resultset encoding="html">.
>>> The external action outputs (from old user guide):
>>> "A single item result is treated as a one-column row, a list of items is 
>>> treated as a row of columns, and a list of lists is treated as a rowset."
>>>
>>> Check (full) path to file and permissions.
>>>
>>> On 4/30/20 11:01 PM, Wayne Irvine wrote:
>>>> I’m calling a bash script which contains a curl command. How do I get the 
>>>> results of the curl command back to Terascript?
>>>>
>>>> Do I have to prefix the Bash script with echo? And do I use @@resultset in 
>>>> the taf?
>>>>
>>>> Wayne
>>>>
>>>>
>>>>
>>>>
>>>> ----------------------------------------
>>>>  To unsubscribe from this list, please send an email to 
>>>> [email protected] <mailto:[email protected]> with "unsubscribe 
>>>> terascript-talk" in the body.
>>>>
>>>
>>>
>>> To unsubscribe from this list, please send an email to 
>>> [email protected] <mailto:[email protected]> with "unsubscribe 
>>> terascript-talk" in the body.
>>
>>
>>
>> To unsubscribe from this list, please send an email to 
>> [email protected] <mailto:[email protected]> with "unsubscribe 
>> terascript-talk" in the body.
>>
>> To unsubscribe from this list, please send an email to 
>> [email protected] <mailto:[email protected]> with "unsubscribe 
>> terascript-talk" in the body.
>
>
>
> To unsubscribe from this list, please send an email to 
> [email protected] <mailto:[email protected]> with "unsubscribe 
> terascript-talk" in the body.
>
> To unsubscribe from this list, please send an email to 
> [email protected] <mailto:[email protected]> with "unsubscribe 
> terascript-talk" in the body.




----------------------------------------
 To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to