LiveCode Server

Ralf Bitter rabit at revigniter.com
Thu Oct 17 14:29:09 EDT 2019



> On 17. Oct 2019, at 19:27, Lagi Pittas via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> HI Ralph
> 
> Basically the server script does this
> 
> put arrayEncode($_SERVER) and sends back everything within the $_SERVER
> variable
> we then decode it in the App ....
> 
> It gives us everything shown in the documentation but not the header info
> 
> 
>   - GATEWAY_INTERFACE
>   - SERVER_ADDR
>   - SERVER_NAME
>   - SERVER_SOFTWARE
>   - <SNIP>
>   - SCRIPT_NAME
>   - SCRIPT_FILENAME
>   - CONTENT_TYPE
>   - CONTENT_LENGTH
> 
> But not the headers
> 
> Hope that helps
> 
> Lagi


OK, in case you are interested in all the headers the
server sends in response to a request you might indeed probably
find the answer by checking out the code in revliburl.livecodescript.
But just including the script only stack (using “start using stack”)
won’t work right away. Seems there are modifications needed
to be able to get a value from libURLLastRHheaders().
Would be glad to be wrong.

Ralf


More information about the use-livecode mailing list