prototype of http get in samples