cURL / Mailing Lists / curl-users / Single Mail


Can you force a connection to close via the command line?

From: Simon Alexander <>
Date: Fri, 25 Jul 2014 15:27:11 -0600

Is there anyway to force the closure of a connection using the curl command

We have a situation where after performing a curl sftp upload of a file, we
get the message "Connection #0 to host left intact" and then the command

I aware of the CURLOPT_FORBID_REUSE option if using libcurl, but we're
using curl within a shell script.

From what I've read there doesn't appear to be a similar command line
option. Am I missing something?

List admin:
Received on 2014-07-25