set the itemDelimiter to slash
put URL "https://open library. org/api/books?bibkeys=ISBN:0385472579,LCCN:62019420&format=json" into NewsContent
put the result into theError
if theError is empty then
put JSONToArray(NewsContent) into tArray
How can I use the "URL" command with NTLM Autentication. I need to add header data, but I don't find a
possibility for this?
put "Content-Type: application/json" into tHeader
put CR & "Authorization: NTLM TlRMTVNTUAADAAAAGAAYAGgAAAAYABgAgAAAAAAAAABIAAAAIAAgAEgAAAAAAAAAaAAAAAAAAACYAAAABYKIogUBKAoAAAAPcwBpAGUAZwBmAHIAaQBlAGQALgBrAGEAcgBsAGUAcgAnpk+rQ3+mqQAAAAAAAAAAAAAAAAAAAACrY7GaUtg0ZZzDkkKuc8YsrwNIGR5tvhc=" after tHeader
set the httpheaders to tHeader
That being said, NTLM authentication requires a conversation with the server in order to generate the proper token. The internet library that ships with LiveCode Community doesn't support NTLM auth out of the box. If your copy of LiveCode includes tsNet then it may support NTLM auth automatically.
I don’t know the answer to that. You could email LiveCode support and ask for details about NTLM authentication and tsNet to see if it will seamlessly work.