[eluser]Chathuranga Tennakoon[/eluser]
if the problem occurred recently, that might be due to the configuration issues n the server side(most probably). since it is working and behaving in three developers' machines in total different ways, the error may rely on the server side. better to check the server side configuration rather than struggling with your code.