http_put using data rather than file