Thread:Project:Support desk/$wgConf and CentralAuth/reply

For your first problem, you need to set  before calling , because the latter uses the former. For the HTTP error, you'll need to get the error message, Manual:How to debug can help you.