diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-04-24 23:07:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-04-24 23:07:43 +0200 |
commit | b82d87981729669fdbb9dcd2ae30d372b1f0a330 (patch) | |
tree | 8c4bfcf7fba3cab26f32bc7251bf01c1c3504eff /docs | |
parent | 94ac2ca7754f6ee13c378fed2e731aee61045bb1 (diff) | |
download | curl-b82d87981729669fdbb9dcd2ae30d372b1f0a330.tar.gz |
TODO: telnet - exit immediately upon connection if stdin is /dev/null
Suggested-by: Robin A. Meade
URL: https://curl.se/mail/archive-2022-04/0027.html
Diffstat (limited to 'docs')
-rw-r--r-- | docs/TODO | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -81,6 +81,7 @@ 6.1 ditch stdin 6.2 ditch telnet-specific select 6.3 feature negotiation debug data + 6.4 exit immediately upon connection if stdin is /dev/null 7. SMTP 7.1 Passing NOTIFY option to CURLOPT_MAIL_RCPT @@ -636,6 +637,13 @@ Add telnet feature negotiation data to the debug callback as header data. +6.4 exit immediately upon connection if stdin is /dev/null + + If it did, curl could be used to probe if there's an server there listening + on a specific port. That is, the following command would exit immediately + after the connection is established with exit code 0: + + curl -s --connect-timeout 2 telnet://example.com:80 </dev/null 7. SMTP |