aboutsummaryrefslogtreecommitdiff
path: root/docs/MANUAL
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-30 08:09:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-30 08:09:08 +0000
commitbc8375a1e8fe8268de12ab1f821ed4ab6130c154 (patch)
treef01e4a7b3e65824303d8dc47678d37f0f6678979 /docs/MANUAL
parent83877d5ec60d43cd8c9bfceabae28f865e0bc090 (diff)
removed silly old -t usage from here, added some blurb about the "new" -t
that sets telnet options
Diffstat (limited to 'docs/MANUAL')
-rw-r--r--docs/MANUAL15
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/MANUAL b/docs/MANUAL
index cffaad158..23e82ff25 100644
--- a/docs/MANUAL
+++ b/docs/MANUAL
@@ -132,7 +132,7 @@ UPLOADING
Upload all data on stdin to a specified ftp site:
- curl -t ftp://ftp.upload.com/myfile
+ curl -T - ftp://ftp.upload.com/myfile
Upload data from a specified file, login with user and password:
@@ -157,7 +157,7 @@ UPLOADING
Upload all data on stdin to a specified http site:
- curl -t http://www.upload.com/myfile
+ curl -T - http://www.upload.com/myfile
Note that the http server must've been configured to accept PUT before this
can be done successfully.
@@ -756,6 +756,17 @@ TELNET
You might want the -N/--no-buffer option to switch off the buffered output
for slow connections or similar.
+ Pass options to the telnet protocol negotiation, by using the -t option. To
+ tell the server we use a vt100 terminal, try something like:
+
+ curl -tTTYPE=vt100 telnet://remote.server.com
+
+ Other interesting options for it -t include:
+
+ - XDISPLOC=<X display> Sets the X display location.
+
+ - NEW_ENV=<var,val> Sets an environment variable.
+
NOTE: the telnet protocol does not specify any way to login with a specified
user and password so curl can't do that automatically. To do that, you need
to track when the login prompt is received and send the username and