1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: location-trusted
5Help: As --location, but send secrets to other hosts
6Protocols: HTTP
7Category: http auth
8Added: 7.10.4
9Multi: boolean
10See-also:
11  - user
12Example:
13  - --location-trusted -u user:password $URL
14  - --location-trusted -H "Cookie: session=abc" $URL
15---
16
17# `--location-trusted`
18
19Instructs curl to like --location follow HTTP redirects, but permits it to
20send credentials and other secrets along to other hosts than the initial one.
21
22This may or may not introduce a security breach if the site redirects you to a
23site to which you send this sensitive data to. Another host means that one or
24more of hostname, protocol scheme or port number changed.
25
26This option also allows curl to pass long cookies set explicitly with --header.
27