cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Simon Alexander <simon.p.alexander_at_gmail.com>
Date: Fri, 25 Jul 2014 15:27:11 -0600

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

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
hangs.

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: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-25