Buffer added as optional argument to the http_post function