Up |
Define an option; usually this definition is before a perform.
For that, there is one option (I
) and one value
(u0
). If you need to add N options, call N times this function.
fun [ObjNetwork I u0] ObjNetwork
name=content
, where name is
the cookie name and content is what the cookie should contain.
If you need to set multiple cookies, you need to set them all using a
single option and thus you need to concatenate them all in one single string.
Set multiple cookies in one string like this:
"name1=content1; name2=content2; etc..."
.Scol_libcurl-agent/1.0
. A string is expected.NETWORK_OPTION_SSL_AUTH
(above)
option must be enabled. Differents values are availables, see below.scheme://host:port/path
). Examples : "http://www.domain.tld",
"http://login:password@www.domain.tld/folder/",
"ftp://123.123.123.123/folder/file.ext", "smtp://mail.domain.tld:5151", ...
For NETWORK_OPTION_PROTOCOLS and NETWORK_OPTION_REDIR_PROTOCOLS options :
I :
NETWORK_PROTOCOL_HTTP, NETWORK_PROTOCOL_HTTPS, NETWORK_PROTOCOL_FTP, NETWORK_PROTOCOL_FTPS, NETWORK_PROTOCOL_SCP, NETWORK_PROTOCOL_SFTP, NETWORK_PROTOCOL_TELNET, NETWORK_PROTOCOL_LDAP, NETWORK_PROTOCOL_LDAPS, NETWORK_PROTOCOL_DICT, NETWORK_PROTOCOL_FILE, NETWORK_PROTOCOL_TFTP, NETWORK_PROTOCOL_IMAP, NETWORK_PROTOCOL_IMAPS, NETWORK_PROTOCOL_POP3, NETWORK_PROTOCOL_POP3S, NETWORK_PROTOCOL_SMTP, NETWORK_PROTOCOL_SMTPS, NETWORK_PROTOCOL_RTSP, NETWORK_PROTOCOL_RTMP, NETWORK_PROTOCOL_RTMPT, NETWORK_PROTOCOL_RTMPE, NETWORK_PROTOCOL_RTMPTE, NETWORK_PROTOCOL_RTMPS, NETWORK_PROTOCOL_RTMPTS, NETWORK_PROTOCOL_GOPHER, NETWORK_PROTOCOL_ALL
For NETWORK_OPTION_S_FTP_DIRONLY, NETWORK_OPTION_FOLLOW_LOCATION, NETWORK_OPTION_FTP_APPEND, NETWORK_OPTION_HTTPGET and NETWORK_OPTION_AUTH_UNRESTRICTED options :
I :
1 to enable
For NETWORK_OPTION_MAX_REDIRS, NETWORK_OPTION_BUFFERSIZE and NETWORK_OPTION_REMOTEPORT options :
I :
the number
For NETWORK_OPTION_LOCALPORT option :
[I I] :
a port between 1 and 65535 and the number of attempts should
make to find a working local port number
For NETWORK_OPTION_S_FTP_QUOTE option :
[I [S r1]] :
For NETWORK_OPTION_HTTP_AUTH option :
I :
For NETWORK_OPTION_SSL_AUTH :
I :
For NETWORK_OPTION_FTP_AUTH :
I :
These 3 values below makes libcurl use CCC (Clear Command Channel). It shuts down the SSL/TLS layer after authenticating. The rest of the control channel communication will be unencrypted. This allows NAT routers to follow the FTP transaction.
For NETWORK_OPTION_USERNAME, NETWORK_OPTION_PASSWORD, NETWORK_OPTION_COOKIE, NETWORK_OPTION_USERAGENT, NETWORK_OPTION_REFERRER, NETWORK_OPTION_FTP_PORT, NETWORK_OPTION_FTP_ACCT, NETWORK_OPTION_URL options :
S :
a string
For NETWORK_OPTION_HEADERS :
[S r1] :
a list of strings
Return : ObjNetwork the same object.