# URL as variable

**URL:** <https://community.postman.com/t/url-as-variable/7471>\
**Category:** Help Hub\
**Tags:** tests, variables\
**Created:** [August 28, 2019, 7:15am UTC](https://community.postman.com/t/url-as-variable/7471 "2019-08-28T07:15:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas.lobnig](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Lukas.lobnig](https://community.postman.com/u/Lukas.lobnig)\
**Post date:** [August 28, 2019, 7:15am UTC](https://community.postman.com/t/url-as-variable/7471/1 "2019-08-28T07:15:09Z")

</div>

So the URL for my get request is a variable. But in the variable the http:// and the port Part is missing so i cant just put the variable in the URL. How do i solve this?  
the variable looks like this: 192.168.1.106/repo/api/v1/report/19  
but should look like this: [http://192.168.1.106:8081/repo/api/v1/report/19](http://192.168.1.106:8081/repo/api/v1/report/19)

---

<div class="post-metadata">

**Author:** ![LiamC](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LiamC](https://community.postman.com/u/LiamC)\
**Post date:** [August 28, 2019, 10:54am UTC](https://community.postman.com/t/url-as-variable/7471/2 "2019-08-28T10:54:26Z")

</div>

> [@Lukas.lobnig](#):
>
> [http://192.168.1.106:8081](http://192.168.1.106:8081)

Hi,

Do you have your Environment Variables setup something like this?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/d/0dfbb75dc87919ecb9c9ed3a929bd304ecdc83a1.png)

With the url variable called in double curly { brackets?

![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/4/644c3d9c7f66add3aa06037b7a96aabc50e8410c.png)
