sync and async http