aboutsummaryrefslogtreecommitdiff
path: root/docs/TODO
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-14 08:58:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-14 08:58:38 +0200
commit8909865191072b6fc3e040ab0caccc2ec09d8763 (patch)
treea92a0d2059a6cfe97c352c75ee974a84291a6233 /docs/TODO
parent878214df44a41eef49b65039ab0cdfdbf847a5fe (diff)
TODO: Consider convenience options for JSON and XML?
Closes #5203
Diffstat (limited to 'docs/TODO')
-rw-r--r--docs/TODO15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/TODO b/docs/TODO
index 0f19be9ae..3a9a6168e 100644
--- a/docs/TODO
+++ b/docs/TODO
@@ -140,6 +140,7 @@
18.5 UTF-8 filenames in Content-Disposition
18.6 Option to make -Z merge lined based outputs on stdout
18.7 at least N milliseconds between requests
+ 18.8 Consider convenience options for JSON and XML?
18.9 Choose the name of file in braces for complex URLs
18.10 improve how curl works in a windows console window
18.11 Windows: set attribute 'archive' for completed downloads
@@ -926,6 +927,20 @@ that doesn't exist on the server, just like --ftp-create-dirs.
See https://github.com/curl/curl/issues/3920
+18.8 Consider convenience options for JSON and XML?
+
+ Could we add `--xml` or `--json` to add headers needed to call rest API:
+
+ `--xml` adds -H 'Content-Type: application/xml' -H "Accept: application/xml" and
+ `--json` adds -H 'Content-Type: application/json' -H "Accept: application/json"
+
+ Setting Content-Type when doing a GET or any other method without a body
+ would be a bit strange I think - so maybe only add CT for requests with body?
+ Maybe plain `--xml` and ` --json` are a bit too brief and generic. Maybe
+ `--http-json` etc?
+
+ See https://github.com/curl/curl/issues/5203
+
18.9 Choose the name of file in braces for complex URLs
When using braces to download a list of URLs and you use complicated names