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 On Thu, 17 Oct 2019 at 17:55, Ralf Bitter via use-livecode < use-livecode@lists.runrev.com> wrote: > > > > On 17. Oct 2019, at 17:24, Lagi Pittas via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > There is no $_SERVER["HTTP_Authorization"] in the docs the closest is > > $_SERVER["HTTP] but since > > the code gives an error and the return is empty it's a moot point. > > > Lagi, the original question was: > > > how to read an "Authorization: Bearer" header in > > LiveCode Script on the server?? > > > because > > > we want to do basic validation by passing a token from > > the App to the server script. > > > Please correct me if I am on the wrong track, but to my > understanding the issue is related to reading > the Authorization request header sent by an app to > the server. In this case there is a server variable > $_SERVER["HTTP_Authorization"] which can be read > by LC server. Of course there is no $_SERVER["HTTP_Authorization"] > in the docs. > > > Ralf > _______________________________________________ > 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