Headers for the Load*() functions

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
hoerbie
Posts: 100
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Headers for the Load*() functions

Post by hoerbie »

Hi,
I would find it helpful, when I could set up my own additional headers when using the LoadScript(), LoadImage() or LoadSound() functions.
My apps are using a device token in the header when communicating by HTTPRequest() with my in PB written server, and without token it is not so easy to know, which app client wants to load additional style, javascript, image or sound from the server.
For now I'm adding the device token as "?token=...." parameter behind the loaded file name, but using own headers would be more consistent.
Greets, hoerbie