# Set the base url dynamically

**URL:** <https://community.dreamfactory.com/t/set-the-base-url-dynamically/4757>\
**Category:** REST API\
**Created:** [January 4, 2019, 5:05pm UTC](https://community.dreamfactory.com/t/set-the-base-url-dynamically/4757 "2019-01-04T17:05:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fwu](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fwu](https://community.dreamfactory.com/u/fwu)\
**Post date:** [January 4, 2019, 5:05pm UTC](https://community.dreamfactory.com/t/set-the-base-url-dynamically/4757/1 "2019-01-04T17:05:16Z")

</div>

hello,

I need to proxy almost directly a service. I know I can create a new http service and set the Base URL. It works as expected. But now I need to set this Base URL dynamically, based on the client parameters. More concretly I need to set the protocol (http/https and the server). What is the recommended way to achieve this? Maybe I need to use other kind of service, but which?

regards!
