you are passing only three parameters. For post, your third parameter should be only the php script that processes the request(without the querystring parameters) and the fourth parameter should be the "querystring" data. Try:
send_to_host('humbot.freewebhostingpro.com','POST','/index.php','a=5');