Re: LiveCode Server latency causing empty results

2015-08-07 Thread Roger Eller
Mike, Thank you. Your loop through the array makes perfect sense to me. On Aug 7, 2015 6:21 PM, "Mike Bonner" wrote: > A couple things, probably just typos but.. > > Your function begin and end names don't match. > You have 2 put lines on the same line, which won't work. (type on this one > i'm

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Mike Bonner
A couple things, probably just typos but.. Your function begin and end names don't match. You have 2 put lines on the same line, which won't work. (type on this one i'm sure) When you are getting stuff back out of the $_POST variable, "name" and "message" are the array keys. not "tName" or "tMess

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Roger Eller
In the multiLine messageBox, I have this script: - put empty into tForm put "http://myServer/post_this.lc"; into tUrl put "dave" into tName put "hello" into tMessage if libURLMultipartFormData (tForm, "name", tName, "message", tMessage) is not empty then answer it ##error else

Re: Could someone explain this por favor ?

2015-08-07 Thread Dave Cragg
> When I run this simple test on my Mac (no client / server), > it works no matter how many successive "get URLdecode(it)" > lines : > > get "the sky is blue" > get compress(it) > get base64encode(it) > get URLencode(it) > get URLdecode(it) > get URLdecode(it) > get base64decode(it)

Sending a POST string

2015-08-07 Thread William Prothero
For Roger Eller: Here is what I use. I post to a php script. I’ll share the php, but it should work for livecode servers too. If anybody wants the scripts, contact me off the list. Best, Bill --The data are returned in an array. -- dRet[i][columnName] holds the value of the data for a particula

RE: Livecode server latency...

2015-08-07 Thread Ralph DiMola
I am having the same problem with user registration. The sendmail shell take 11-15 seconds to complete. I reported this to David W. [Ticket#2015072310005161] His response: >On 7/23/2015 David Williams wrote: >Regarding the delay in sending an email, this could be due to a variety of reasons such

Re: Livecode server latency...

2015-08-07 Thread Richard Gaskin
christer wrote: > My app uses Tio, and the latency is really severe. A new user won't > accept 10 sec wait, not to speak about 30. The latency prohibits > user's registration and also user's relicensing. RR should focus the > issue because it is a showstopper. With a delay that long they probabl

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Mike Bonner
put "name1=value1&name2=value2&name3=value3" into tPost post tPost to URL Its also handy to use liburlformdata to build your post string also liburlmultipartformdata and liburlmultipartformaddpart On Fri, Aug 7, 2015 at 10:56 AM, Roger Eller wrote: > I want to try POST, but I don't know how to

Re: LiveCode Server latency causing empty results

2015-08-07 Thread Roger Eller
I want to try POST, but I don't know how to feed it my list as a parameter without having a form involved. Any examples of POST without a html form would be helpful. ~Roger On Thu, Aug 6, 2015 at 2:38 PM, Mike Bonner wrote: > Not sure it'll make a difference, but have you considered using POS

Re: Could someone explain this por favor ?

2015-08-07 Thread Mark Schonewille
Hi Ralph, No, you're not lucky. This is how it is supposed to be. Data sent to the server should be urlEncoded if sent as a URL, but data received from the server don't need to be urlDecoded. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http

RE: Could someone explain this por favor ?

2015-08-07 Thread Ralph DiMola
I only urlencode data going to the server from the client. I don't urldecode in the server script. I did urldecode the $_GET array when I first used the LC server. I found later that I didn't need to do this. This seems to be done already when the url argument data is put into the $_GET array. I re

[YO EDINBURGH!] Microsoft Open-Sources It's Toolkit For Making iOS Apps Run On Win 10

2015-08-07 Thread Mike Kerner
http://www.zdnet.com/article/microsoft-open-sources-its-ios-toolkit-for-building-windows-10-apps/?tag=nl.e539&s_cid=e539&ttag=e539&ftag=TRE17cfd61 -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold fo

Re: Could someone explain this por favor ?

2015-08-07 Thread jbv
Mike, > > You might ONLY urlencode, then return the data from the server straight > (before decode) and a second copy after decode, and see if what you put in > ends up as what you get out. (obviously, the data doesn't need to be > decoded on the apache side, because it works.. But it'd be intere

Re: Could someone explain this por favor ?

2015-08-07 Thread Mark Schonewille
Hi JBV and Mike, On one occasion, I had a case where the carriage returns were converted to crlf somewhere between the app and the php script. I have also had a case where trailing cr's were added to the URL. This could cause the decompress function to fail. I would advice writing both encod

Re: Could someone explain this por favor ?

2015-08-07 Thread Mike Bonner
No clue WHY it would react different, but the decompress error does seem to indicate the compressed data ends up "un-decompressable" (c) So yeah it does appear that either a) apache does something a bit different when the data comes in, or b) the urldecode on the server does things slightly differe

Re: Could someone explain this por favor ?

2015-08-07 Thread jbv
Mike, When I run this simple test on my Mac (no client / server), it works no matter how many successive "get URLdecode(it)" lines : get "the sky is blue" get compress(it) get base64encode(it) get URLencode(it) get URLdecode(it) get URLdecode(it) get base64decode(it) get d

Re: Could someone explain this por favor ?

2015-08-07 Thread Mike Bonner
NVM, urlencode does indeed change the base64 encoded data, but still doesn't seem to be much point. Having said that, Mark is right. (Marks usually are) Since its the decompress that throws the error, (as I've just seen on my own test) it is looking like what goes in using urlencode, and what come

Re: Could someone explain this por favor ?

2015-08-07 Thread jbv
Hi Mike > > Having said that.. I'm not sure why urldecode is throwing an error. Even > if > you pass it a straight unencoded text string, it should just.. do nothing > to it. (If there are no % signs, theres nothing to decode.. It might hork > something if there ARE % signs, but it shouldn't cause

Re: Could someone explain this por favor ?

2015-08-07 Thread Mike Bonner
If I understand correctly, the base64 encode will turn the data into something like this: TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaW

Re: Livecode server latency...

2015-08-07 Thread christer
My app uses Tio, and the latency is really severe. A new user won't accept 10 sec wait, not to speak about 30. The latency prohibits user's registration and also user's relicensing. RR should focus the issue because it is a showstopper. ___ use-l

Re: Could someone explain this por favor ?

2015-08-07 Thread Mark Schonewille
Hi JBV, The Apache server decodes the URL before passing it on to the LiveCode engine. The same happens with PHP. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553

Could someone explain this por favor ?

2015-08-07 Thread jbv
Hi list On the client side I have this script : get myVar get compress(it) get base64encode(it) POST ("a=" & urlencode(it)) to URL ("http://www.domain.com/irev/myScript.lc?";) put base64decode(it) into myVar put decompress(myV) into myVar answer myVar and on the server side I have

Re: Anomalous Script behavior

2015-08-07 Thread Peter Bogdanoff
This is the issue I was having with a stack with a player that sends callbacks that a script handler doesn’t seem to respond to… LiveCode 7.1.0 dp1 An update. I was able to isolate the problem. SAVING the stack sets things aright, for awhile... This is how my script should work: 1. I load an au