Wow, thanks Robert, this does work, I just tried on my own server.
This sounds really similar to something I was trying to do earlier. My other server uses PHP and I figured out how to use Curl commands in a PHP module to hit the API and return json results to an ajax call from the client. Here is that topic