I'm using ArcGIS Server 10.2.2 on Linux.
When I manually request a token from:
It works fine. When I manually request a token from (through web server):
It doesn't work. I get:
When I request manually with this URL (note the 'admin'), it works fine (this is through the web server):
So, it seems like through the REST endpoint, the 'post' is getting mangled between the web server and the GIS server?
Then, through the 'admin' endpoint, the 'post' works fine.
One more question.... Why are there two ways to get a token? Is one method preferable?