build_httr_request function

Build a httr request