xref: /aosp_15_r20/external/curl/docs/cmdline-opts/path-as-is.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: path-as-is
5*6236dae4SAndroid Build Coastguard WorkerHelp: Do not squash .. sequences in URL path
6*6236dae4SAndroid Build Coastguard WorkerAdded: 7.42.0
7*6236dae4SAndroid Build Coastguard WorkerCategory: curl
8*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
9*6236dae4SAndroid Build Coastguard WorkerSee-also:
10*6236dae4SAndroid Build Coastguard Worker  - request-target
11*6236dae4SAndroid Build Coastguard WorkerExample:
12*6236dae4SAndroid Build Coastguard Worker  - --path-as-is https://example.com/../../etc/passwd
13*6236dae4SAndroid Build Coastguard Worker---
14*6236dae4SAndroid Build Coastguard Worker
15*6236dae4SAndroid Build Coastguard Worker# `--path-as-is`
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard WorkerDo not handle sequences of /../ or /./ in the given URL path. Normally curl
18*6236dae4SAndroid Build Coastguard Workersquashes or merges them according to standards but with this option set you
19*6236dae4SAndroid Build Coastguard Workertell it not to do that.
20