Using http post to log data