summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2022-05-11 18:48:20 (GMT)
committerkjnash <k.j.nash@usa.net>2022-05-11 18:48:20 (GMT)
commitb9ef9f9cefccc2ef851149acbd14c280dd70e622 (patch)
treeaeae03e18523317c4e03d49a1118461f48c1348d /doc
parenta96ca020dfbf40d8a61669620d17c5a1e455a99a (diff)
downloadtcl-b9ef9f9cefccc2ef851149acbd14c280dd70e622.zip
tcl-b9ef9f9cefccc2ef851149acbd14c280dd70e622.tar.gz
tcl-b9ef9f9cefccc2ef851149acbd14c280dd70e622.tar.bz2
Revise http(n) to fix #14e3c258d9
Diffstat (limited to 'doc')
-rw-r--r--doc/http.n20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/http.n b/doc/http.n
index c4a8688..47ed057 100644
--- a/doc/http.n
+++ b/doc/http.n
@@ -341,12 +341,20 @@ otherwise complain about HTTP/1.1.
\fB\-query\fR \fIquery\fR
.
This flag (if the value is non-empty) causes \fB::http::geturl\fR to do a
-POST request that passes the
-\fIquery\fR as payload verbatim to the server.
-The content format (and encoding) of \fIquery\fR is announced by the header
-field \fBcontent-type\fR set by the option \fB-type\fR.
-\fIquery\fR is an x-url-encoding formatted query, if used for html forms.
-The \fB::http::formatQuery\fR procedure can be used to do the formatting.
+POST request that passes the string
+\fIquery\fR verbatim to the server as the request payload.
+The content format (and encoding) of \fIquery\fR is announced by the request
+header \fBContent-Type\fR which is set by the option \fB-type\fR. Any value
+of \fB-type\fR is permitted, and it is the responsibility of the caller to
+supply \fIquery\fR in the correct format.
+.RS
+.PP
+If \fB-type\fR is not specified, it defaults to
+\fIapplication/x-www-form-urlencoded\fR, which requires \fIquery\fR to be an
+x-url-encoding formatted query-string (this \fB-type\fR and query format are
+used in a POST submitted from an html form). The \fB::http::formatQuery\fR
+procedure can be used to do the formatting.
+.RE
.TP
\fB\-queryblocksize\fR \fIsize\fR
.