modified http client to support sessions