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
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
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
> 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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
If I understand correctly, the base64 encode will turn the data into
something like this:
TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz
IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg
dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaW
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
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
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
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
23 matches
Mail list logo