redo http post_function so that data is stored for playground file