I have been playing along with the OnlineUnlockStatus tutorial.
I have implemented the test server on the web (rather than locally).
There’s a strange difference in behaviour among the demo app (which uses WebInputStream) vs cURL vs the browser (Chrome).
For a single URL https://mysite.com/api/authorisation?email=test%40juce.com&pw=test
there are three different responses:
- Browser : Shows XML as expected.
- cURL : Triggers exception on site.
- WebInputStream (as implemented in unlock demo): 404 page.
Obviously this is not just a JUCE issue but I’m struggling to appreciate why these responses might be so different. Any thoughts would be really helpful.
The site uses OctoberCMS (based on Laravel) and uses Laravel Routes to create the API.