I have a fairly straightforward PHP application that is using a library to connect to a REST API and poll information. I was racking my brain trying to figure out why the calls were failing when I was testing it locally via MAMP. As a last ditch effort, I uploaded it to my web server and hit it from my browser and, lo and behold, it worked just fine.
Why would the script not work locally? Is there something about making REST calls via MAMP that just doesn't work?
I'm confused.