build_request_url function

Build the request URL