Basic Twitch Connect OAuth Help

WOOT, I am nearly there. I tried the above on live and it worked, but on my localhost didn’t. What could be causing that? I am confident I have curl enabled? Something to do with the redirect url maybe? Even if the localhost method is a mystery, at least on some level it is working. Thanks so much, it was driving me wild.

The localhost mystery is slightly less annoying! Thanks.