curl/docs
Jay Satiro cec47daa8c write-out.d: clarify Windows % symbol escaping
- Clarify that in Windows batch files the % must be escaped as %%, and
  at the command prompt it cannot be escaped which could lead to
  incorrect expansion.

Prior to this change the doc implied % must be escaped as %% in win32
always.

---

Examples showing how a write-out argument is received by curl:

If curl --write-out "%{http_code}" is executed in a batch file:
{http_code}

If curl --write-out "%%{http_code}" is executed in a batch file:
%{http_code}

If curl --write-out "%{http_code}" is executed from the command prompt:
%{http_code}

If curl --write-out "%%{http_code}" is executed from the command prompt:
%%{http_code}

At the command prompt something like "%{speed_download}%{http_code}"
would first be parsed by the command interpreter as %{speed_download}%
and would be expanded as environment variable {speed_download} if it
existed, though that's highly unlikely since Windows environment names
don't use braces.

---

Reported-by: Muhammad Hussein Ammari

Ref: https://github.com/bagder/everything-curl/pull/279

Fixes https://github.com/curl/curl/issues/10323
Closes https://github.com/curl/curl/pull/10337
2023-01-26 18:52:27 -05:00
..
cmdline-opts write-out.d: clarify Windows % symbol escaping 2023-01-26 18:52:27 -05:00
examples copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
libcurl docs: POSTFIELDSIZE must be set to -1 with read function 2023-01-20 10:01:43 -08:00
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
ALTSVC.md
BINDINGS.md
BUFREF.md
BUG-BOUNTY.md
BUGS.md
CHECKSRC.md
CIPHERS.md
CMakeLists.txt copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CODE_OF_CONDUCT.md
CODE_REVIEW.md
CODE_STYLE.md
CONNECTION-FILTERS.md
CONTRIBUTE.md
curl-config.1 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CURL-DISABLE.md
DEPRECATE.md noproxy: support for space-separated names is deprecated 2023-01-04 09:15:37 +01:00
DYNBUF.md
EARLY-RELEASE.md
EXPERIMENTAL.md openssl: Don't ignore CA paths when using Windows CA store (redux) 2023-01-17 03:32:58 -05:00
FAQ
FEATURES.md
GOVERNANCE.md
HELP-US.md docs: add link to GitHub Discussions 2023-01-02 00:26:37 +01:00
HISTORY.md
HSTS.md
HTTP2.md
HTTP3.md msh3: update to v0.6 2023-01-10 13:50:08 +01:00
HTTP-COOKIES.md
HYPER.md
INSTALL
INSTALL.cmake
INSTALL.md
INTERNALS.md INTERNALS: cleanup 2022-12-27 10:54:03 +01:00
KNOWN_BUGS cmake: set the soname on the shared library 2022-12-15 12:36:25 +01:00
MAIL-ETIQUETTE
Makefile.am copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
MANUAL.md MANUAL.md: add pipe to apt-key example 2022-12-28 09:19:02 +01:00
mk-ca-bundle.1 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
MQTT.md
NEW-PROTOCOL.md
options-in-versions src: add --http3-only 2023-01-12 16:18:05 +01:00
PARALLEL-TRANSFERS.md
README.md
RELEASE-PROCEDURE.md
ROADMAP.md
RUSTLS.md
SECURITY-PROCESS.md SECURITY-PROCESS.md: document severity levels 2022-12-21 16:26:35 +01:00
SSL-PROBLEMS.md
SSLCERTS.md
THANKS THANKS: 40 new contributors from 7.87.0 2022-12-21 08:00:59 +01:00
THANKS-filter copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
TheArtOfHttpScripting.md
TODO
URL-SYNTAX.md
VERSIONS.md
WEBSOCKET.md copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00

curl logo

Documentation

you will find a mix of various documentation in this directory and subdirectories, using several different formats. Some of them are not ideal for reading directly in your browser.

If you would rather see the rendered version of the documentation, check out the curl website's documentation section for general curl stuff or the libcurl section for libcurl related documentation.