# Params value 없을때 query string 미적용 방법

**URL:** <https://ask.selectfromuser.com/t/params-value-query-string/211>\
**Category:** 사용 팁\
**Tags:** http, axios\
**Created:** [6월 28, 2024, 4:31오전 UTC](https://ask.selectfromuser.com/t/params-value-query-string/211 "2024-06-28T04:31:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbkim](https://yyz2.discourse-cdn.com/flex032/user_avatar/ask.selectfromuser.com/hbkim/32/23_2.png) [@hbkim](https://ask.selectfromuser.com/u/hbkim)\
**Post date:** [6월 28, 2024, 4:31오전 UTC](https://ask.selectfromuser.com/t/params-value-query-string/211/1 "2024-06-28T04:31:52Z")

</div>

아래 방법을 활용하면 params value가 없는 경우 query string에 key: value 값을 제외할 수 있습니다.

```yaml
  - type: http
    axios:
      method: POST
      url: https://httpbin.selectfromuser.com/anything
      params:
        searchName: "{{ searchName || null }}"

    params:
      - key: searchName

```

params value가 없을때와 있을때 샘플 이미지를 함께 첨부드립니다.

**없을때**

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/selectfromuser/original/1X/613ed4e6722938365327ad6f07b5bae0068fccf6.png)

**있을때**

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/selectfromuser/original/1X/c523b058e6d6390d045c0949a8ac5d158c08017b.png)
