calling http service using PHP in Wordpress