add sample code of http request