<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CURLOPT">Asterisk 11 Function_CURLOPT</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk11Function_CURLOPT-CURLOPT%28%29"></a>CURLOPT()</h1>
<h3><a name="Asterisk11Function_CURLOPT-Synopsis"></a>Synopsis</h3>
<p>Sets various options for future invocations of CURL.</p>
<h3><a name="Asterisk11Function_CURLOPT-Description"></a>Description</h3>
<p>Options may be set globally or per channel. Per-channel settings will override global settings.</p>
<h3><a name="Asterisk11Function_CURLOPT-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>CURLOPT(key)</pre>
</div></div>
<h5><a name="Asterisk11Function_CURLOPT-Arguments"></a>Arguments</h5>
<ul>
        <li>key
        <ul>
                <li>cookie - A cookie to send with the request. Multiple cookies are supported.</li>
                <li>conntimeout - Number of seconds to wait for a connection to succeed</li>
                <li>dnstimeout - Number of seconds to wait for DNS to be resolved</li>
                <li>ftptext - For FTP URIs, force a text transfer (boolean)</li>
                <li>ftptimeout - For FTP URIs, number of seconds to wait for a server response</li>
                <li>header - Include header information in the result (boolean)</li>
                <li>httptimeout - For HTTP(S) URIs, number of seconds to wait for a server response</li>
                <li>maxredirs - Maximum number of redirects to follow</li>
                <li>proxy - Hostname or IP address to use as a proxy server</li>
                <li>proxytype - Type of <tt>proxy</tt>
                <ul>
                        <li>http</li>
                        <li>socks4</li>
                        <li>socks5</li>
                </ul>
                </li>
                <li>proxyport - Port number of the <tt>proxy</tt></li>
                <li>proxyuserpwd - A <em>username</em><tt>:</tt><em>password</em> combination to use for authenticating requests through a <tt>proxy</tt></li>
                <li>referer - Referer URL to use for the request</li>
                <li>useragent - UserAgent string to use for the request</li>
                <li>userpwd - A <em>username</em><tt>:</tt><em>password</em> to use for authentication when the server response to an initial request indicates a 401 status code.</li>
                <li>ssl_verifypeer - Whether to verify the server certificate against a list of known root certificate authorities (boolean).</li>
                <li>hashcompat - Assuming the responses will be in <tt>key1=value1&key2=value2</tt> format, reformat the response such that it can be used by the <tt>HASH</tt> function.
                <ul>
                        <li>yes</li>
                        <li>no</li>
                        <li>legacy - Also translate <tt>+</tt> to the space character, in violation of current RFC standards.</li>
                </ul>
                </li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk11Function_CURLOPT-SeeAlso"></a>See Also</h3>
<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_CURL" title="Asterisk 11 Function_CURL">Asterisk 11 Function_CURL</a></li>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Function_HASH&linkCreation=true&fromPageId=20187166" class="createlink">Asterisk 11 Function_HASH</a></li>
</ul>
<h3><a name="Asterisk11Function_CURLOPT-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CURLOPT">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CURLOPT?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>