Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_connect_only(3) [mojave man page]

CURLOPT_CONNECT_ONLY(3) 				     curl_easy_setopt options					   CURLOPT_CONNECT_ONLY(3)

NAME
CURLOPT_CONNECT_ONLY - stop when connected to target server SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CONNECT_ONLY, long only); DESCRIPTION
Pass a long. If the parameter equals 1, it tells the library to perform all the required proxy authentication and connection setup, but no data transfer, and then return. The option can be used to simply test a connection to a server, but is more useful when used with the CURLINFO_ACTIVESOCKET(3) option to curl_easy_getinfo(3) as the library can set up the connection and then the application can obtain the most recently used socket for special data transfers. DEFAULT
0 PROTOCOLS
HTTP, SMTP, POP3 and IMAP EXAMPLE
TODO AVAILABILITY
Added in 7.15.2 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_VERBOSE(3), CURLOPT_HTTPPROXYTUNNEL(3), curl_easy_recv(3), curl_easy_send(3) libcurl 7.54.0 December 18, 2016 CURLOPT_CONNECT_ONLY(3)

Check Out this Related Man Page

CURLINFO_PROTOCOL(3)					     curl_easy_getinfo options					      CURLINFO_PROTOCOL(3)

NAME
CURLINFO_PROTOCOL - get the protocol used in the connection SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROTOCOL, long *p); DESCRIPTION
Pass a pointer to a long to receive the version used in the last http connection. The returned value will be one of the CURLPROTO_* val- ues. PROTOCOLS
All EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); if(res == CURLE_OK) { long protocol; curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol); } curl_easy_cleanup(curl); } AVAILABILITY
Added in 7.52.0 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLINFO_RESPONSE_CODE(3), curl_easy_getinfo(3), curl_easy_setopt(3), libcurl 7.54.0 November 23, 2016 CURLINFO_PROTOCOL(3)
Man Page

3 More Discussions You Might Find Interesting

1. AIX

Rmcctrl??

Hi there, I've had a problem with DLPAR on one of our servers, it tells me there is no connection between the server and the HMC, so i've researched some websites and found a possible solution, it's to run the following commands /usr/sbin/rsct/bin/rmcctrl -z /usr/sbin/rsct/install/bin/recfgct... (1 Reply)
Discussion started by: KeesH
1 Replies

2. Programming

getoptlong

Hi..., I am using the getoptlong() function to handle the options. For some options I am having the long option and for some other I don't want the long option. So, what I have to specify in the place of long option field when declaring the longopt array. (1 Reply)
Discussion started by: nagalenoj
1 Replies

3. UNIX for Advanced & Expert Users

How does netcat manage the data it transfers ?

Hi all, When using netcat to transfer the data over socket, if no connection is established, how long will netcat keep the data; will it discard the "oldest" data ? Say for example I use "Some Command | netcat -l -p port", the command I use will generate a lot of output constantly, while no... (2 Replies)
Discussion started by: qiulang
2 Replies