Thread:Project:Support desk/Server hangs up while using bot class

Server hangs up when i use my mediawiki bot, My code is as follows, I hope there is some issue with curl or may be some other. can some one help me what is the problem why server hands up during initialising the class and calling the functionality. I tried to fine the discussion thread for wikibot page, i didnt get, if possible give me the link where i should create a thread for wikibot