Re: Posting to LiveCode Server

2018-04-20 Thread Richard Gaskin via use-livecode

Tom Glod wrote:

> I was going to use LC Server until I realized there was a built in
> httpd server library present in LC 9 I ditched LC server
> mainly because it smokes LC server in performance.

I would be interested in the details of that comparison, scripts and 
metrics.


Despite its name, LC Server isn't a server, but a command-line app meant 
to run under a web server such as Apache or LigHTTPd which supports CGI.


The httpd script included with LC is a server, but designed for local 
use.  It may be useful on remote hosts; I haven't tried it.


So it's not so much:

LC's HTTPd  vs LC Server

...as it is:

LC's HTTPd vs Apache + LC Server

Given that all CGIs are launched, run, and quit with each request, and 
that all LC processes (desktop or "Server") currently spend more than 
two thirds of their launch time looking for and initializing fonts which 
are very rarely if ever used (close to zero known uses with LC Server), 
it certainly gives a potential edge to any LC process that runs that 
unnecessarily cumbersome boot process only once and then remains persistent.


But on the flipside, Apache is written in C and despite its vast feature 
set performs as well as we'd expect from compiled object code. My own 
experiments using LC as a scripted HTTPd have managed to achieve only 
half the speed of Apache -  and that was without attempting HTTPS, a 
requirement for any HTTP server to be used outside the local network.


So an apples-to-apples test would pit LC's httpd on a remote server 
bound to one port, with Apache + LC Server on that same system bound to 
another port.


And for the results to be applicable to real-world needs, both would be 
tested with HTTPS.


--
 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


Re: Posting to LiveCode Server

2018-04-19 Thread Bob Sneidar via use-livecode
URL Encode it.

Bob S


> On Apr 18, 2018, at 22:48 , David Bovill via use-livecode 
>  wrote:
> 
> Todd, the browser auto-translates things you type / copy paste in the url
> bar to something it expects you want as a url.
> 
> You have characters in the url that need to be escaped (<>)


___
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: Posting to LiveCode Server

2018-04-18 Thread David Bovill via use-livecode
Todd, the browser auto-translates things you type / copy paste in the url
bar to something it expects you want as a url.

You have characters in the url that need to be escaped (<>)

On Wed, 18 Apr 2018 at 11:51, Todd Fabacher via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Any Help will be appreciated...
>
> Normally we use Node.js, but we are trying to get LiveCode server working.
> We are doing a simple test:
>
> 
>
>
> If I put the URL in a browser I get back, "It works"
>
> https://api01.triviamatic.tv/round_create.lc
> <
> https://www.google.com/url?q=https://api01.triviamatic.tv/round_create.lc=D=hangouts=1524117219848000=AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA
> >
>
>
> *put* "Accept: text/plain" & CR after tHeaders
> *put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders
> *set* the httpHeaders to tHeaders
> *put*"fullname=chi=male=black" into tArgList
> *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc
> <
> https://www.google.com/url?q=https://api01.triviamatic.tv/round_create.lc=D=hangouts=1524117219848000=AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA
> >
> "
> *put* the result into tError
> *put* it into tFormResults
>
>
> The tError is:  tsneterr: (52) Empty reply from server
>
> and tFormResults is null
>
>
> I need some help ASAP. This is SUPER frustrating!!
>
> --Todd Fabacher
> ___
> 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: Posting to LiveCode Server

2018-04-18 Thread Tom Glod via use-livecode
Hi Clarance..There isn't much to expand on.thats what blew me away
about this  look up "httpd" in lc 9.0 dictionary.  there are 3
commands.  it can't possibly be any easier . you can just send an
encoded & encrypted array back and forth.  done.  Mark says wasn't built to
be a web server per se.  but it sure as life works like one :)

some benchmarks by richard gaskin:

http://lists.runrev.com/pipermail/use-livecode/2016-March/225068.html

Enjoy.


HTTPD Library
Type
library


Handle HTTP requests in your application
*Name* *Summary* *Syntax*
httpdResponse Respond to a HTTP request httpdResponse pSocketID,
pResponseCode,pContent,pHeaders
httpdStart Start a HTTP server httpdStart pCallback,pPort,pServerName
httpdStop Stop a HTTP server httpdStop pP



On Wed, Apr 18, 2018 at 3:51 PM, Clarence Martin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Tom, can you expand on your post? Maybe with an example.
>
> -Original Message-
> From: use-livecode <use-livecode-boun...@lists.runrev.com> On Behalf Of
> Tom
> Glod via use-livecode
> Sent: Wednesday, April 18, 2018 11:31 AM
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Cc: Tom Glod <t...@makeshyft.com>
> Subject: Re: Posting to LiveCode Server
>
> I was going to use LC Server until I realized there was a built in httpd
> server library present in LC 9 I ditched LC server mainly because
> it
> smokes LC server in performance.  Just bringing to awareness all your
> options.
>
> http library is so simple to use with callbacks for each request.  its so
> awesome.  good luck.
>
> On Wed, Apr 18, 2018 at 9:50 AM, Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Can you share the code to the page you're actually posting to?  Its
> > sounding like its not actually returning any output, causing a 500
> > internal error.  Just to let you test, I set up a quick and dirty page
> > at http://guidezone.info/test.lc The code in the page is as follows.
> >
> >  > put the keys of $_POST into tKeys
> > if tKeys is not empty then
> >repeat for each line tKey in tKeys
> >   put $_POST[tkey] & ""
> >end repeat
> > else
> >put "Error: No data posted" -- gotta put somethingto avoid a 500
> > error end if ?>
> >
> > To test it, I used the following in a button.
> > put "Accept: text/plain" & CR after tHeaders put "Content-Type:
> > application/x-www-form-urlencoded" & CR after tHeaders set the
> > httpHeaders to tHeaders
> >
> > put liburlformdata("name","Chi","gender","male","color","black") into
> > tPostData
> >
> > put tPostData & cr --so that I can see the generated post string
> >
> > post tPostData to "http://guidezone.info/test.lc;
> >
> > put it && the result after msg
> >
> >
> > This works for me, though as I said, I don't have tsnet.  You're
> > welcome to do test runs against my url if you like. If it works for me
> > as written, and not for you, i'd be pointing my finger at tsnet.
> >
> > On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Not quite sure what you're trying to do ... or why you use such a
> > > complicated URL in the client code.
> > >
> > > Changing it to simply
> > >
> > > *get URL "https://api01.triviamatic.tv/round_create.lc;
> > > *
> > >
> > > will work fine, as will
> > >
> > > *post*emptyto"https://api01.triviamatic.tv/round_create.lc;
> > >
> > >
> > > -- Alex.
> > >
> > >
> > >
> > > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote:
> > >
> > >> Any Help will be appreciated...
> > >>
> > >> Normally we use Node.js, but we are trying to get LiveCode server
> > working.
> > >> We are doing a simple test:
> > >>
> > >> 
> > >>
> > >>
> > >> If I put the URL in a browser I get back, "It works"
> > >>
> > >> https://api01.triviamatic.tv/round_create.lc
> > >> <https://www.google.com/url?q=https://api01.triviamatic.tv/r
> > >> ound_create.lc=D=hangouts=1524117219848000
> > >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
> > >>
> > >>
> > >> *put* "Accept: text/plain" & CR after tHeaders
> > &g

RE: Posting to LiveCode Server

2018-04-18 Thread Clarence Martin via use-livecode
Tom, can you expand on your post? Maybe with an example.

-Original Message-
From: use-livecode <use-livecode-boun...@lists.runrev.com> On Behalf Of Tom
Glod via use-livecode
Sent: Wednesday, April 18, 2018 11:31 AM
To: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: Tom Glod <t...@makeshyft.com>
Subject: Re: Posting to LiveCode Server

I was going to use LC Server until I realized there was a built in httpd
server library present in LC 9 I ditched LC server mainly because it
smokes LC server in performance.  Just bringing to awareness all your
options.

http library is so simple to use with callbacks for each request.  its so
awesome.  good luck.

On Wed, Apr 18, 2018 at 9:50 AM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can you share the code to the page you're actually posting to?  Its 
> sounding like its not actually returning any output, causing a 500 
> internal error.  Just to let you test, I set up a quick and dirty page 
> at http://guidezone.info/test.lc The code in the page is as follows.
>
>  put the keys of $_POST into tKeys
> if tKeys is not empty then
>repeat for each line tKey in tKeys
>   put $_POST[tkey] & ""
>end repeat
> else
>put "Error: No data posted" -- gotta put somethingto avoid a 500 
> error end if ?>
>
> To test it, I used the following in a button.
> put "Accept: text/plain" & CR after tHeaders put "Content-Type: 
> application/x-www-form-urlencoded" & CR after tHeaders set the 
> httpHeaders to tHeaders
>
> put liburlformdata("name","Chi","gender","male","color","black") into 
> tPostData
>
> put tPostData & cr --so that I can see the generated post string
>
> post tPostData to "http://guidezone.info/test.lc;
>
> put it && the result after msg
>
>
> This works for me, though as I said, I don't have tsnet.  You're 
> welcome to do test runs against my url if you like. If it works for me 
> as written, and not for you, i'd be pointing my finger at tsnet.
>
> On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode < 
> use-livecode@lists.runrev.com> wrote:
>
> > Not quite sure what you're trying to do ... or why you use such a 
> > complicated URL in the client code.
> >
> > Changing it to simply
> >
> > *get URL "https://api01.triviamatic.tv/round_create.lc;
> > *
> >
> > will work fine, as will
> >
> > *post*emptyto"https://api01.triviamatic.tv/round_create.lc;
> >
> >
> > -- Alex.
> >
> >
> >
> > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote:
> >
> >> Any Help will be appreciated...
> >>
> >> Normally we use Node.js, but we are trying to get LiveCode server
> working.
> >> We are doing a simple test:
> >>
> >> 
> >>
> >>
> >> If I put the URL in a browser I get back, "It works"
> >>
> >> https://api01.triviamatic.tv/round_create.lc
> >> <https://www.google.com/url?q=https://api01.triviamatic.tv/r
> >> ound_create.lc=D=hangouts=1524117219848000
> >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
> >>
> >>
> >> *put* "Accept: text/plain" & CR after tHeaders
> >> *put* "Content-Type: application/x-www-form-urlencoded" & CR after 
> >> tHeaders
> >> *set* the httpHeaders to tHeaders
> >> *put*"fullname=chi=male=black" into tArgList
> >> *post* tArgList to URL 
> >> "https://api01.triviamatic.tv/round_create.lc
> >> <https://www.google.com/url?q=https://api01.triviamatic.tv/r
> >> ound_create.lc=D=hangouts=1524117219848000
> >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
> >> "
> >> *put* the result into tError
> >> *put* it into tFormResults
> >>
> >>
> >> The tError is:  tsneterr: (52) Empty reply from server
> >>
> >> and tFormResults is null
> >>
> >>
> >> I need some help ASAP. This is SUPER frustrating!!
> >>
> >> --Todd Fabacher
> >> ___
> >> 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@list

Re: Posting to LiveCode Server

2018-04-18 Thread Tom Glod via use-livecode
I was going to use LC Server until I realized there was a built in httpd
server library present in LC 9 I ditched LC server mainly because
it smokes LC server in performance.  Just bringing to awareness all your
options.

http library is so simple to use with callbacks for each request.  its so
awesome.  good luck.

On Wed, Apr 18, 2018 at 9:50 AM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can you share the code to the page you're actually posting to?  Its
> sounding like its not actually returning any output, causing a 500 internal
> error.  Just to let you test, I set up a quick and dirty page at
> http://guidezone.info/test.lc
> The code in the page is as follows.
>
>  put the keys of $_POST into tKeys
> if tKeys is not empty then
>repeat for each line tKey in tKeys
>   put $_POST[tkey] & ""
>end repeat
> else
>put "Error: No data posted" -- gotta put somethingto avoid a 500 error
> end if
> ?>
>
> To test it, I used the following in a button.
> put "Accept: text/plain" & CR after tHeaders
> put "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders
> set the httpHeaders to tHeaders
>
> put liburlformdata("name","Chi","gender","male","color","black") into
> tPostData
>
> put tPostData & cr --so that I can see the generated post string
>
> post tPostData to "http://guidezone.info/test.lc;
>
> put it && the result after msg
>
>
> This works for me, though as I said, I don't have tsnet.  You're welcome to
> do test runs against my url if you like. If it works for me as written, and
> not for you, i'd be pointing my finger at tsnet.
>
> On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Not quite sure what you're trying to do ... or why you use such a
> > complicated URL in the client code.
> >
> > Changing it to simply
> >
> > *get URL "https://api01.triviamatic.tv/round_create.lc;
> > *
> >
> > will work fine, as will
> >
> > *post*emptyto"https://api01.triviamatic.tv/round_create.lc;
> >
> >
> > -- Alex.
> >
> >
> >
> > On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote:
> >
> >> Any Help will be appreciated...
> >>
> >> Normally we use Node.js, but we are trying to get LiveCode server
> working.
> >> We are doing a simple test:
> >>
> >> 
> >>
> >>
> >> If I put the URL in a browser I get back, "It works"
> >>
> >> https://api01.triviamatic.tv/round_create.lc
> >>  >> ound_create.lc=D=hangouts=1524117219848000
> >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
> >>
> >>
> >> *put* "Accept: text/plain" & CR after tHeaders
> >> *put* "Content-Type: application/x-www-form-urlencoded" & CR after
> >> tHeaders
> >> *set* the httpHeaders to tHeaders
> >> *put*"fullname=chi=male=black" into tArgList
> >> *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc
> >>  >> ound_create.lc=D=hangouts=1524117219848000
> >> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
> >> "
> >> *put* the result into tError
> >> *put* it into tFormResults
> >>
> >>
> >> The tError is:  tsneterr: (52) Empty reply from server
> >>
> >> and tFormResults is null
> >>
> >>
> >> I need some help ASAP. This is SUPER frustrating!!
> >>
> >> --Todd Fabacher
> >> ___
> >> 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: Posting to LiveCode Server

2018-04-18 Thread Mike Bonner via use-livecode
Can you share the code to the page you're actually posting to?  Its
sounding like its not actually returning any output, causing a 500 internal
error.  Just to let you test, I set up a quick and dirty page at
http://guidezone.info/test.lc
The code in the page is as follows.

"
   end repeat
else
   put "Error: No data posted" -- gotta put somethingto avoid a 500 error
end if
?>

To test it, I used the following in a button.
put "Accept: text/plain" & CR after tHeaders
put "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders
set the httpHeaders to tHeaders

put liburlformdata("name","Chi","gender","male","color","black") into
tPostData

put tPostData & cr --so that I can see the generated post string

post tPostData to "http://guidezone.info/test.lc;

put it && the result after msg


This works for me, though as I said, I don't have tsnet.  You're welcome to
do test runs against my url if you like. If it works for me as written, and
not for you, i'd be pointing my finger at tsnet.

On Wed, Apr 18, 2018 at 7:01 AM, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Not quite sure what you're trying to do ... or why you use such a
> complicated URL in the client code.
>
> Changing it to simply
>
> *get URL "https://api01.triviamatic.tv/round_create.lc;
> *
>
> will work fine, as will
>
> *post*emptyto"https://api01.triviamatic.tv/round_create.lc;
>
>
> -- Alex.
>
>
>
> On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote:
>
>> Any Help will be appreciated...
>>
>> Normally we use Node.js, but we are trying to get LiveCode server working.
>> We are doing a simple test:
>>
>> 
>>
>>
>> If I put the URL in a browser I get back, "It works"
>>
>> https://api01.triviamatic.tv/round_create.lc
>> > ound_create.lc=D=hangouts=1524117219848000
>> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
>>
>>
>> *put* "Accept: text/plain" & CR after tHeaders
>> *put* "Content-Type: application/x-www-form-urlencoded" & CR after
>> tHeaders
>> *set* the httpHeaders to tHeaders
>> *put*"fullname=chi=male=black" into tArgList
>> *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc
>> > ound_create.lc=D=hangouts=1524117219848000
>> =AFQjCNFvW3yaTcJjQ9bGpWgi3CYh1mQwGA>
>> "
>> *put* the result into tError
>> *put* it into tFormResults
>>
>>
>> The tError is:  tsneterr: (52) Empty reply from server
>>
>> and tFormResults is null
>>
>>
>> I need some help ASAP. This is SUPER frustrating!!
>>
>> --Todd Fabacher
>> ___
>> 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: Posting to LiveCode Server

2018-04-18 Thread Alex Tweedly via use-livecode
Not quite sure what you're trying to do ... or why you use such a 
complicated URL in the client code.


Changing it to simply

*get URL "https://api01.triviamatic.tv/round_create.lc;
*

will work fine, as will

*post*emptyto"https://api01.triviamatic.tv/round_create.lc;


-- Alex.


On 18/04/2018 11:50, Todd Fabacher via use-livecode wrote:

Any Help will be appreciated...

Normally we use Node.js, but we are trying to get LiveCode server working.
We are doing a simple test:




If I put the URL in a browser I get back, "It works"

https://api01.triviamatic.tv/round_create.lc



*put* "Accept: text/plain" & CR after tHeaders
*put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders
*set* the httpHeaders to tHeaders
*put*"fullname=chi=male=black" into tArgList
*post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc

"
*put* the result into tError
*put* it into tFormResults


The tError is:  tsneterr: (52) Empty reply from server

and tFormResults is null


I need some help ASAP. This is SUPER frustrating!!

--Todd Fabacher
___
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: Posting to LiveCode Server

2018-04-18 Thread Matthias Rebbe via use-livecode
Todd,

is there a reason why you are not using the function libURLMultipartFormData to 
format the data before posting?

We are using the post method for different tasks including uploading really big 
files to a livecode server, but we always use libURLMultipartFormData to create 
the form data.

Btw.which version of LC server is running on your side?


Matthias


> Am 18.04.2018 um 12:50 schrieb Todd Fabacher via use-livecode 
> :
> 
> Any Help will be appreciated...
> 
> Normally we use Node.js, but we are trying to get LiveCode server working.
> We are doing a simple test:
> 
> 
> 
> 
> If I put the URL in a browser I get back, "It works"
> 
> https://api01.triviamatic.tv/round_create.lc
> 
> 
> 
> *put* "Accept: text/plain" & CR after tHeaders
> *put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders
> *set* the httpHeaders to tHeaders
> *put*"fullname=chi=male=black" into tArgList
> *post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc
> 
> "
> *put* the result into tError
> *put* it into tFormResults
> 
> 
> The tError is:  tsneterr: (52) Empty reply from server
> 
> and tFormResults is null
> 
> 
> I need some help ASAP. This is SUPER frustrating!!
> 
> --Todd Fabacher
> ___
> 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


Posting to LiveCode Server

2018-04-18 Thread Todd Fabacher via use-livecode
Any Help will be appreciated...

Normally we use Node.js, but we are trying to get LiveCode server working.
We are doing a simple test:




If I put the URL in a browser I get back, "It works"

https://api01.triviamatic.tv/round_create.lc



*put* "Accept: text/plain" & CR after tHeaders
*put* "Content-Type: application/x-www-form-urlencoded" & CR after tHeaders
*set* the httpHeaders to tHeaders
*put*"fullname=chi=male=black" into tArgList
*post* tArgList to URL "https://api01.triviamatic.tv/round_create.lc

"
*put* the result into tError
*put* it into tFormResults


The tError is:  tsneterr: (52) Empty reply from server

and tFormResults is null


I need some help ASAP. This is SUPER frustrating!!

--Todd Fabacher
___
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