RE: AW: tsneterr: (6) could not resolve host - can anyone else test this?

2017-03-16 Thread Paul Richards via use-livecode
LC 8.1.3  - Windows 10 64Bit - Works for me 

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Charles Warwick via use-livecode
Sent: 16 March 2017 10:11
To: use-livecode@lists.runrev.com
Cc: Charles Warwick 
Subject: Re: AW: tsneterr: (6) could not resolve host - can anyone else test 
this?

I have not been able to replicate this issue here, but I am using an older 
version of Windows.

Is there anyone that can try this on various versions of Windows to see if this 
problem is specific to Win 10?

Try typing the following into the message box:

put URL
"http://test_auth:test_p...@downloads.techstrategies.com.au/test_auth/;

If it is successful, you should see "Authentication successful." appear in the 
message box.

Thanks,

Charles


On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote:
> Hi Tiemo,
>
> I have not heard of this issue before but will see if I can reproduce 
> it and get back to you.
>
> A workaround would be to use the tsNetGetSync function directly so 
> that you can specify the user/pass separately like this:
>
> --
> local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put 
> "public" into tSettings["username"] put "myPW" into 
> tSettings["password"] put 
> tsNetGetSync("http://www.myHost/mypath/my.txt;, tHeaders, tOutHeaders, 
> tResultCode, tBytes, tSettings) into tResult
> --
>
> Hope that helps,
>
> Cheers,
>
> Charles
>
>
> On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote:
>> Forgot to say: Windows 10
>>
>> -Ursprüngliche Nachricht-
>> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im 
>> Auftrag von Tiemo Hollmann TB via use-livecode
>> Gesendet: Mittwoch, 15. März 2017 16:00
>> An: LiveCode User Liste senden 
>> Cc: Tiemo Hollmann TB 
>> Betreff: tsneterr: (6) could not resolve host
>>
>> Hello,
>>
>> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
>> public" when trying to access a file in a web server directory with 
>> user and password protection
>>
>> put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult
>>
>> when opening the same file in a not pw protected directory, 
>> everything is fine and I get the content of the file
>>
>> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw 
>> protected dir, like it should.
>>
>> Is this a known issue with tsnet? Any workarounds?
>>
>> Thanks
>>
>> Tiemo
>>
>>
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: the screenpixelscale on Microsoft SurfaceBook?

2017-03-16 Thread Trevor DeVore via use-livecode
On Mon, Mar 6, 2017 at 1:11 PM, Andre Garzia  wrote:

> Hey Trevor,
>
> This is a Surface Pro 4 with Intel HD 520 running latest Windows 10 at
> 2736x1284 with 200% display scaling. The screenPixelScale reported is 2 on
> LC 8.1.2
>
> I can't have my machine go to 3000x2000, sorry.
>

Thanks Andre. I just came across another odd case and gathered some more
diagnostics. LiveCode is reporting that the monitor has a screen pixel
scale of 1.25. In reality the system is set to 1.00. I think there was a
Windows or video card update that has caused LiveCode to report incorrect
screen pixel scale information. I'm gathering information from one other
customer and then I'm going to file a report.

-- 
Trevor DeVore
Outcome & ScreenSteps
www.outcomeapp.io - www.screensteps.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: AW: tsneterr: (6) could not resolve host - can anyone else test this?

2017-03-16 Thread Tiemo Hollmann TB via use-livecode
Panos from LC solved the mystery. In my URL the password has a special
character, which can't be handled in 8.1.2 and 8.1.3 on Windows. When doing
urlencode(myPW), it also works in 8.1.3
The why is not known
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Paul Richards via use-livecode
Gesendet: Donnerstag, 16. März 2017 15:22
An: How to use LiveCode 
Cc: Paul Richards 
Betreff: RE: AW: tsneterr: (6) could not resolve host - can anyone else test
this?

LC 8.1.3  - Windows 10 64Bit - Works for me 

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Charles Warwick via use-livecode
Sent: 16 March 2017 10:11
To: use-livecode@lists.runrev.com
Cc: Charles Warwick 
Subject: Re: AW: tsneterr: (6) could not resolve host - can anyone else test
this?

I have not been able to replicate this issue here, but I am using an older
version of Windows.

Is there anyone that can try this on various versions of Windows to see if
this problem is specific to Win 10?

Try typing the following into the message box:

put URL
"http://test_auth:test_p...@downloads.techstrategies.com.au/test_auth/;

If it is successful, you should see "Authentication successful." appear in
the message box.

Thanks,

Charles


On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote:
> Hi Tiemo,
>
> I have not heard of this issue before but will see if I can reproduce 
> it and get back to you.
>
> A workaround would be to use the tsNetGetSync function directly so 
> that you can specify the user/pass separately like this:
>
> --
> local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put 
> "public" into tSettings["username"] put "myPW" into 
> tSettings["password"] put 
> tsNetGetSync("http://www.myHost/mypath/my.txt;, tHeaders, tOutHeaders, 
> tResultCode, tBytes, tSettings) into tResult
> --
>
> Hope that helps,
>
> Cheers,
>
> Charles
>
>
> On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote:
>> Forgot to say: Windows 10
>>
>> -Ursprüngliche Nachricht-
>> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im 
>> Auftrag von Tiemo Hollmann TB via use-livecode
>> Gesendet: Mittwoch, 15. März 2017 16:00
>> An: LiveCode User Liste senden 
>> Cc: Tiemo Hollmann TB 
>> Betreff: tsneterr: (6) could not resolve host
>>
>> Hello,
>>
>> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
>> public" when trying to access a file in a web server directory with 
>> user and password protection
>>
>> put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult
>>
>> when opening the same file in a not pw protected directory, 
>> everything is fine and I get the content of the file
>>
>> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw 
>> protected dir, like it should.
>>
>> Is this a known issue with tsnet? Any workarounds?
>>
>> Thanks
>>
>> Tiemo
>>
>>
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SFTP with .PPK file

2017-03-16 Thread Charles Warwick via use-livecode

Hi Steve,

It looks like you are using a SSH private key in PuTTY format (.ppk).  
tsNet requires it to be in OpenSSH format.


That is easy to fix though, you can convert the .ppk with PuttyGen.

To do this, open PuttyGen and load the .ppk file.  Then select 
"Conversions" -> "Export OpenSSH key".


Apart from that, just make sure that your call to tsNetGet includes the 
full path of the file you want to download.


Hope that helps,

Cheers,

Charles


On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote:

Well, still no luck in getting it to work, but getting closer…

I found a sample file linked to on livecode.com . 
Modifying it to use the key file, I have:

on mouseUp
local tHeaders, tResult, tSettings
put “" into tSettings["username"]
put URL "binfile:D:\private.ppk" into tPrivKey
put tPrivKey into tSettings["ssh_priv_key"]
tsNetInit
put tsNetGet("1", "sftp://secure..us/;, tHeaders, 
"transferComplete", tSettings) into tResult
end mouseUp

However, it returns:

  tsneterr: (67) Authentication failure

Again, I can access the sftp site with no problems using the WinSCP ftp client 
and the key file.

Any suggestions??

Thanks,

Steve MacLean


On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode 
 wrote:

Hi All,

Looking to use tsNet to connect to a SFTP server that uses username and a 
private key instead of a password. The private key is contained in a file.

I use WinSCP and can link the connection to the file and can connect fine.

In LC, I’ve set the CABundle to the file, but am not sure this is how it’s 
supposed to work. Getting an auth error when doing tsNetGet.

Any help would be appreciated.

Thanks,

Steve MacLean

PS: Running 9.0 dp6 Business

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Translating escape sequences

2017-03-16 Thread Richmond via use-livecode

Ouch. My excuse is that I was working with the example you supplied.

Richmond.

On 15/03/17 22:36, J. Landman Gay via use-livecode wrote:

What if the user name has seven characters after the escape sequence?

On 3/15/17 3:16 PM, Richmond Mathewson via use-livecode wrote:

Just knock off the last 3, and what is left is what you want.

Richmond.

On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote:

The problem with the pseudo code is that there's no clear indication
of how many characters at the end to preserve. I'm not sure how the
libraries deal with that.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode
 wrote:


No; it won't always be 4 characters, here's an admittedly extremely
obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:
I'm dealing with non-English languages, and JSON data retrieved 
from a

database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with 
"0x"

and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have
one.

The alternative is to loop through all the text, getting an offset 
for

each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode







___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Translating escape sequences

2017-03-16 Thread Richmond via use-livecode

Should do.

Richmond.

On 15/03/17 23:03, Mike Bonner via use-livecode wrote:

does this mean one could replace /u with 0x and then replace uls with empty
and end up with the correct end result?

On Wed, Mar 15, 2017 at 2:16 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:


Just knock off the last 3, and what is left is what you want.

Richmond.

On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote:


The problem with the pseudo code is that there's no clear indication of
how many characters at the end to preserve. I'm not sure how the libraries
deal with that.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

No; it won't always be 4 characters, here's an admittedly extremely

obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:


I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have one.

The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AW: tsneterr: (6) could not resolve host

2017-03-16 Thread Charles Warwick via use-livecode

Hi Tiemo,

I have not heard of this issue before but will see if I can reproduce it 
and get back to you.


A workaround would be to use the tsNetGetSync function directly so that 
you can specify the user/pass separately like this:


--
local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings
put "public" into tSettings["username"]
put "myPW" into tSettings["password"]
put tsNetGetSync("http://www.myHost/mypath/my.txt;, tHeaders, 
tOutHeaders, tResultCode, tBytes, tSettings) into tResult

--

Hope that helps,

Cheers,

Charles


On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote:

Forgot to say: Windows 10

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Tiemo Hollmann TB via use-livecode
Gesendet: Mittwoch, 15. März 2017 16:00
An: LiveCode User Liste senden 
Cc: Tiemo Hollmann TB 
Betreff: tsneterr: (6) could not resolve host

Hello,

using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
public" when trying to access a file in a web server directory with user and
password protection

put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult

when opening the same file in a not pw protected directory, everything is
fine and I get the content of the file

Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected
dir, like it should.

Is this a known issue with tsnet? Any workarounds?

Thanks

Tiemo

  

  

  

  


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: tsneterr: (6) could not resolve host - can anyone else test this?

2017-03-16 Thread Matthias Rebbe via use-livecode
Tried it here with

LC 8.1.3, Win 7 Pro, 64bit  -> works
LC 8.1.3, Win 10 Pro, 32bit -> works



Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
> Am 16.03.2017 um 11:10 schrieb Charles Warwick via use-livecode 
> >:
> 
> I have not been able to replicate this issue here, but I am using an older 
> version of Windows.
> 
> Is there anyone that can try this on various versions of Windows to see if 
> this problem is specific to Win 10?
> 
> Try typing the following into the message box:
> 
> put URL 
> "http://test_auth:test_p...@downloads.techstrategies.com.au/test_auth/ 
> "
> 
> If it is successful, you should see "Authentication successful." appear in 
> the message box.
> 
> Thanks,
> 
> Charles
> 
> 
> On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote:
>> Hi Tiemo,
>> 
>> I have not heard of this issue before but will see if I can reproduce it and 
>> get back to you.
>> 
>> A workaround would be to use the tsNetGetSync function directly so that you 
>> can specify the user/pass separately like this:
>> 
>> -- 
>> local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings
>> put "public" into tSettings["username"]
>> put "myPW" into tSettings["password"]
>> put tsNetGetSync("http://www.myHost/mypath/my.txt 
>> ", tHeaders, tOutHeaders, tResultCode, 
>> tBytes, tSettings) into tResult
>> -- 
>> 
>> Hope that helps,
>> 
>> Cheers,
>> 
>> Charles
>> 
>> 
>> On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote:
>>> Forgot to say: Windows 10
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com 
>>> ] Im Auftrag
>>> von Tiemo Hollmann TB via use-livecode
>>> Gesendet: Mittwoch, 15. März 2017 16:00
>>> An: LiveCode User Liste senden >> >
>>> Cc: Tiemo Hollmann TB >
>>> Betreff: tsneterr: (6) could not resolve host
>>> 
>>> Hello,
>>> 
>>> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
>>> public" when trying to access a file in a web server directory with user and
>>> password protection
>>> 
>>> put URL "http://public:myPW@www.myHost/mypath/my.txt 
>>> " into tResult
>>> 
>>> when opening the same file in a not pw protected directory, everything is
>>> fine and I get the content of the file
>>> 
>>> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected
>>> dir, like it should.
>>> 
>>> Is this a known issue with tsnet? Any workarounds?
>>> 
>>> Thanks
>>> 
>>> Tiemo
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> 
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SFTP with .PPK file

2017-03-16 Thread Stephen MacLean via use-livecode
Hi Charles,

Thank you so much for reply!

I converted the key file as you described, however, I’m still getting the error 
67 (authentication error) when running the script.

Any further help would be greatly appreciated.

Best,

Steve MacLean

> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode 
>  wrote:
> 
> Hi Steve,
> 
> It looks like you are using a SSH private key in PuTTY format (.ppk).  tsNet 
> requires it to be in OpenSSH format.
> 
> That is easy to fix though, you can convert the .ppk with PuttyGen.
> 
> To do this, open PuttyGen and load the .ppk file.  Then select "Conversions" 
> -> "Export OpenSSH key".
> 
> Apart from that, just make sure that your call to tsNetGet includes the full 
> path of the file you want to download.
> 
> Hope that helps,
> 
> Cheers,
> 
> Charles
> 
> 
> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote:
>> Well, still no luck in getting it to work, but getting closer…
>> 
>> I found a sample file linked to on livecode.com . 
>> Modifying it to use the key file, I have:
>> 
>> on mouseUp
>>local tHeaders, tResult, tSettings
>>put “" into tSettings["username"]
>>put URL "binfile:D:\private.ppk" into tPrivKey
>>put tPrivKey into tSettings["ssh_priv_key"]
>>tsNetInit
>>put tsNetGet("1", "sftp://secure..us/;, tHeaders, 
>> "transferComplete", tSettings) into tResult
>> end mouseUp
>> 
>> However, it returns:
>> 
>>  tsneterr: (67) Authentication failure
>> 
>> Again, I can access the sftp site with no problems using the WinSCP ftp 
>> client and the key file.
>> 
>> Any suggestions??
>> 
>> Thanks,
>> 
>> Steve MacLean
>> 
>>> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode 
>>>  wrote:
>>> 
>>> Hi All,
>>> 
>>> Looking to use tsNet to connect to a SFTP server that uses username and a 
>>> private key instead of a password. The private key is contained in a file.
>>> 
>>> I use WinSCP and can link the connection to the file and can connect fine.
>>> 
>>> In LC, I’ve set the CABundle to the file, but am not sure this is how it’s 
>>> supposed to work. Getting an auth error when doing tsNetGet.
>>> 
>>> Any help would be appreciated.
>>> 
>>> Thanks,
>>> 
>>> Steve MacLean
>>> 
>>> PS: Running 9.0 dp6 Business
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: SFTP with .PPK file

2017-03-16 Thread Stephen MacLean via use-livecode
Hi Charles, 

One other thing… in looking at the .ppk file, it contains both “public lines”  
and "private lines”. All I see in the ssh key file is private.

Not sure that make any difference, but thought I’d mention it.

Best,

Steve

> On Mar 16, 2017, at 7:53 AM, Stephen MacLean via use-livecode 
>  wrote:
> 
> Hi Charles,
> 
> Thank you so much for reply!
> 
> I converted the key file as you described, however, I’m still getting the 
> error 67 (authentication error) when running the script.
> 
> Any further help would be greatly appreciated.
> 
> Best,
> 
> Steve MacLean
> 
>> On Mar 16, 2017, at 3:08 AM, Charles Warwick via use-livecode 
>>  wrote:
>> 
>> Hi Steve,
>> 
>> It looks like you are using a SSH private key in PuTTY format (.ppk).  tsNet 
>> requires it to be in OpenSSH format.
>> 
>> That is easy to fix though, you can convert the .ppk with PuttyGen.
>> 
>> To do this, open PuttyGen and load the .ppk file.  Then select "Conversions" 
>> -> "Export OpenSSH key".
>> 
>> Apart from that, just make sure that your call to tsNetGet includes the full 
>> path of the file you want to download.
>> 
>> Hope that helps,
>> 
>> Cheers,
>> 
>> Charles
>> 
>> 
>> On 16/03/2017 6:01 AM, Stephen MacLean via use-livecode wrote:
>>> Well, still no luck in getting it to work, but getting closer…
>>> 
>>> I found a sample file linked to on livecode.com . 
>>> Modifying it to use the key file, I have:
>>> 
>>> on mouseUp
>>>   local tHeaders, tResult, tSettings
>>>   put “" into tSettings["username"]
>>>   put URL "binfile:D:\private.ppk" into tPrivKey
>>>   put tPrivKey into tSettings["ssh_priv_key"]
>>>   tsNetInit
>>>   put tsNetGet("1", "sftp://secure..us/;, tHeaders, 
>>> "transferComplete", tSettings) into tResult
>>> end mouseUp
>>> 
>>> However, it returns:
>>> 
>>> tsneterr: (67) Authentication failure
>>> 
>>> Again, I can access the sftp site with no problems using the WinSCP ftp 
>>> client and the key file.
>>> 
>>> Any suggestions??
>>> 
>>> Thanks,
>>> 
>>> Steve MacLean
>>> 
 On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode 
  wrote:
 
 Hi All,
 
 Looking to use tsNet to connect to a SFTP server that uses username and a 
 private key instead of a password. The private key is contained in a file.
 
 I use WinSCP and can link the connection to the file and can connect fine.
 
 In LC, I’ve set the CABundle to the file, but am not sure this is how it’s 
 supposed to work. Getting an auth error when doing tsNetGet.
 
 Any help would be appreciated.
 
 Thanks,
 
 Steve MacLean
 
 PS: Running 9.0 dp6 Business
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Solved: Re: Help test please? GoLiveNet in v9

2017-03-16 Thread Richard Gaskin via use-livecode

Many thanks to all of you who helped test LiveNet.  Much appreciated.

The problem appears to be specific to LC on Linux, and thanks to Charles 
Warwick's excellent support of tsNet he was able to deliver a possible 
fix, which I've confirmed works:

http://quality.livecode.com/show_bug.cgi?id=19026

I would imagine this fix will be included in the next v9 build, so it 
looks like the source of issue is resolved.


So thanks again to everyone here who helped, and esp. to Charles for 
stepping up with diagnostics and a quick fix.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Problem with converting time

2017-03-16 Thread Michael Doub via use-livecode
I am getting different answers based on environment when trying to 
convert EPOC seconds to dateitems or internet date.   On my mac I get 
the expected result but on a HostM server I get something totally different.


Does any one have a conversion function that does not use the livecode's 
convert function that they would be willing to share?


Regards,

Mike



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Problem with converting time

2017-03-16 Thread Richard Gaskin via use-livecode

Michael Doub wrote:

> I am getting different answers based on environment when trying to
> convert EPOC seconds to dateitems or internet date.   On my mac I get
> the expected result but on a HostM server I get something totally
> different.

How different?

> Does any one have a conversion function that does not use the
> livecode's convert function that they would be willing to share?

The seconds are usually a very good choice for their compactness and 
ease of calculation, and more so because the value we get is in GMT 
based on the offset from host OS.


What this should mean is that you can convert values obtained from "the 
seconds" and get a good date/time regardless of which time zone you're in.


So seconds are usually ideal (along with "internet date") for network 
applications such as the one you're working on.


But for the conversion to take your local system into account, you'll 
need to do the conversion locally.


If you're doing the conversion on the server, the date/time will reflect 
the time zone settings in the server OS.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: AW: tsneterr: (6) could not resolve host - can anyone else test this?

2017-03-16 Thread Tiemo Hollmann TB via use-livecode
Hi Charles,

this test URL works for me also in 8.1.3
my URL still doesn't works in 8.1.3 (but in 9.0 and older versions) - what
happened to tsnet in 8.1.3?
your workaround with tsNetGetSync also works with my URL in 8.1.3 - whats
the difference under the hood to put URL?
interesting results!
thanks!

Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Charles Warwick via use-livecode
Gesendet: Donnerstag, 16. März 2017 11:11
An: use-livecode@lists.runrev.com
Cc: Charles Warwick 
Betreff: Re: AW: tsneterr: (6) could not resolve host - can anyone else test
this?

I have not been able to replicate this issue here, but I am using an older
version of Windows.

Is there anyone that can try this on various versions of Windows to see if
this problem is specific to Win 10?

Try typing the following into the message box:

put URL
"http://test_auth:test_p...@downloads.techstrategies.com.au/test_auth/;

If it is successful, you should see "Authentication successful." appear in
the message box.

Thanks,

Charles


On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote:
> Hi Tiemo,
>
> I have not heard of this issue before but will see if I can reproduce 
> it and get back to you.
>
> A workaround would be to use the tsNetGetSync function directly so 
> that you can specify the user/pass separately like this:
>
> --
> local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings put 
> "public" into tSettings["username"] put "myPW" into 
> tSettings["password"] put 
> tsNetGetSync("http://www.myHost/mypath/my.txt;, tHeaders, tOutHeaders, 
> tResultCode, tBytes, tSettings) into tResult
> --
>
> Hope that helps,
>
> Cheers,
>
> Charles
>
>
> On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote:
>> Forgot to say: Windows 10
>>
>> -Ursprüngliche Nachricht-
>> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im 
>> Auftrag von Tiemo Hollmann TB via use-livecode
>> Gesendet: Mittwoch, 15. März 2017 16:00
>> An: LiveCode User Liste senden 
>> Cc: Tiemo Hollmann TB 
>> Betreff: tsneterr: (6) could not resolve host
>>
>> Hello,
>>
>> using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
>> public" when trying to access a file in a web server directory with 
>> user and password protection
>>
>> put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult
>>
>> when opening the same file in a not pw protected directory, 
>> everything is fine and I get the content of the file
>>
>> Testing the same with 8.1 or 9.0 dp 4 it works also with the pw 
>> protected dir, like it should.
>>
>> Is this a known issue with tsnet? Any workarounds?
>>
>> Thanks
>>
>> Tiemo
>>
>>
>>
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Help test please? GoLiveNet in v9

2017-03-16 Thread Dave Kilroy via use-livecode

Works very nicely with LC8.1.3 and 9.0.0(dp6) on mac 10.12.3

Dave

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AW: tsneterr: (6) could not resolve host - can anyone else test this?

2017-03-16 Thread Charles Warwick via use-livecode
I have not been able to replicate this issue here, but I am using an 
older version of Windows.


Is there anyone that can try this on various versions of Windows to see 
if this problem is specific to Win 10?


Try typing the following into the message box:

put URL 
"http://test_auth:test_p...@downloads.techstrategies.com.au/test_auth/;


If it is successful, you should see "Authentication successful." appear 
in the message box.


Thanks,

Charles


On 16/03/2017 6:31 PM, Charles Warwick via use-livecode wrote:

Hi Tiemo,

I have not heard of this issue before but will see if I can reproduce 
it and get back to you.


A workaround would be to use the tsNetGetSync function directly so 
that you can specify the user/pass separately like this:


--
local tHeaders, tOutHeaders, tResultCode, tBytes, tSettings
put "public" into tSettings["username"]
put "myPW" into tSettings["password"]
put tsNetGetSync("http://www.myHost/mypath/my.txt;, tHeaders, 
tOutHeaders, tResultCode, tBytes, tSettings) into tResult

--

Hope that helps,

Cheers,

Charles


On 16/03/2017 1:00 AM, Tiemo Hollmann TB via use-livecode wrote:

Forgot to say: Windows 10

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im 
Auftrag

von Tiemo Hollmann TB via use-livecode
Gesendet: Mittwoch, 15. März 2017 16:00
An: LiveCode User Liste senden 
Cc: Tiemo Hollmann TB 
Betreff: tsneterr: (6) could not resolve host

Hello,

using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
public" when trying to access a file in a web server directory with 
user and

password protection

put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult

when opening the same file in a not pw protected directory, 
everything is

fine and I get the content of the file

Testing the same with 8.1 or 9.0 dp 4 it works also with the pw 
protected

dir, like it should.

Is this a known issue with tsnet? Any workarounds?

Thanks

Tiemo





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription

preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode