put post request in a var