Removed -k from curl, accidently left it there after testing.