Livecode Server Post

Ralph DiMola rdimola at evergreeninfo.net
Fri Jan 11 17:00:14 CET 2019


Ahh....

Your test worked even when I ran it on my account. This confused me for a while but I finally found my problem.
Unless you reference the $_Post variable once the script hangs for a second and then returns nothing. Bug or feature?
I Commented out the last line "put $_POST["test"]" of your post.lc and it hangs for a moment and return nothing. But change it to "put $_POST["test"] into tVar" then the previous puts are returned(displayed) and no momentary hang.

Matthias, Thanks for your Help!! This one was a head scratcher for a 1/2 hour. I don't know how long it would have taken if you did not send me a script that worked. I was just doing some initial tests to get wired into LC server and was just testing $_Server["REQUEST_METHOD"] to examine the request method. Funny though, if the method is "get" then there is no requirement to touch the $_Get variable.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Matthias Rebbe via use-livecode
Sent: Friday, January 11, 2019 2:39 AM
To: How to use LiveCode
Cc: Matthias Rebbe
Subject: Re: Livecode Server Post

Hi Ralph,

i tried here now in the message box with the following lc server script <?lc put the version && the editiontype put "<br><br>"

put "this is the posted value for test:"
put "<br>"
put $_POST["test"]
?>


TIO On-Rev  Commercial Server 7.1
post "test=HELLO" To URL "https://canary.on-rev.com/post.lc <https://canary.on-rev.com/post.lc>"
put it

TIO On-Rev Community server 9.0.1
post "test=HELLO" To URL "https://canary.on-rev.com/post.lc9 <https://canary.on-rev.com/post.lc9>"
put it

HostM Professional Server 9.0.2
post "test=HELLO" To URL "https://mr.dermattes.de/post.lc <https://mr.dermattes.de/post.lc>"
put it


All 3 tests are successful and all expected information including the post value is displayed.


I will keep the post.lc files online for the next 2 days for you to test with my accounts.

Regards,

Matthias


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de <https://instamaker.dermattes.de/>
https://winsignhelper.dermattes.de <https://winsignhelper.dermattes.de/>

> Am 11.01.2019 um 03:05 schrieb Ralph DiMola via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
> 
> When do a post to an LC server script from a .html form no output of "put"s are displayed, just a blank screen. There is also a slight delay until the screen clears. I tested to see if the LC script is actually being executed. It is because I created a file but no display of "Put"s. If I change the method to "get" in the .html form the put in the same .lc is immediately displayed with no delay.
> I want to use post so the params aren’t in the URL and the page can't be bookmarked.
> LC server 9.02 Business on on-rev diesel.
> 
> What am I missing?
> 
> Thanks All!
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net <mailto:rdimola at evergreeninfo.net>
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list