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