I have access to two distinct servers. I would like one’s PHP script to call a URL on the other’s server (and pass a secret variable). However, I want to make sure nobody else can spoof this call.
What is the best way to do this, short of SSL? I was thinking about hashing but anyone can read the POST request’s hash and spoof it.
Thanks!
Maybe you need SSH. You call the other script through ssh, which means no one else can see what’s going on. See this blog