---
name: "TSUrlFtpTypeSet"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSUrlFtpTypeSet"
---

# TSUrlFtpTypeSet(3ts)

TSUrlFtpTypeSet API function

## NAME

TSUrlFtpTypeSet - TSUrlFtpTypeSet API function

## SYNOPSIS

```
#include <ts/ts.h>
```

- ***TSReturnCode* TSUrlFtpTypeSet(*TSMBuffer* bufp, *TSMLoc* offset, int type)**

  ## DESCRIPTION

Sets the FTP type portion of the URL located at *url\_loc* within *bufp* to the value *type*.

## COPYRIGHT

2026, dev@trafficserver.apache.org
