Setting the User-Agent
brahma at hindu.org
Tue Sep 12 16:19:07 EDT 2017
broken? or am I doing it wrong?
libURLSetCustomHTTPHeaders "User-Agent: SivaSivaApp"
put url ("https://www.himalayanacademy.com/ping.txt") into fld "webPage"
if we tail -n1500 /home/myDomain/logs/access_log
we see this:
22.214.171.124 - - [12/Sep/2017:13:07:56 -0700] "GET /ping.txt HTTP/1.1" 200 430 "-" "LiveCode (MacOS)"
Have yet to test on mobile…but without setting anything I'm seeing this in the logs when the app accesses files
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60"
which is interesting but we would like to see some reference to the app in the access_logs
both from desktop and from mobile
any clues for the right way to do this? I can of course set it in the app, but if it's not working (8.1.7 RC1) on desktop, I doubt it will do better on mobile?
More information about the Use-livecode