---
title: querystring.add
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/query-string/querystring-add
---

```
STRING querystring.add(STRING url, STRING name, STRING value)
```

**Available in:** all subroutines

Returns the given URL with the given parameter `name` and `value` appended to
the end of the query string. The parameter `name` and `value` will be URL-encoded
when added to the query string.

## Example

```vcl
set req.url = querystring.add(req.url, "foo", "bar");
```
