<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&amp;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/Function_CURLOPT">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="Function_CURLOPT-CURLOPT%28%29"></a>CURLOPT()</h1>

<h3><a name="Function_CURLOPT-Synopsis"></a>Synopsis</h3>
<p>Sets various options for future invocations of CURL.</p>

<h3><a name="Function_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="Function_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="Function_CURLOPT-Arguments"></a>Arguments</h5>
<ul>
        <li><tt>key</tt>
        <ul>
                <li><tt>cookie</tt> - A cookie to send with the request. Multiple cookies are supported.</li>
                <li><tt>conntimeout</tt> - Number of seconds to wait for a connection to succeed</li>
                <li><tt>dnstimeout</tt> - Number of seconds to wait for DNS to be resolved</li>
                <li><tt>ftptext</tt> - For FTP URIs, force a text transfer (boolean)</li>
                <li><tt>ftptimeout</tt> - For FTP URIs, number of seconds to wait for a server response</li>
                <li><tt>header</tt> - Include header information in the result (boolean)</li>
                <li><tt>httptimeout</tt> - For HTTP(S) URIs, number of seconds to wait for a server response</li>
                <li><tt>maxredirs</tt> - Maximum number of redirects to follow</li>
                <li><tt>proxy</tt> - Hostname or IP address to use as a proxy server</li>
                <li><tt>proxytype</tt> - Type of <tt>proxy</tt>
                <ul>
                        <li><tt>http</tt></li>
                        <li><tt>socks4</tt></li>
                        <li><tt>socks5</tt></li>
                </ul>
                </li>
                <li><tt>proxyport</tt> - Port number of the <tt>proxy</tt></li>
                <li><tt>proxyuserpwd</tt> - A <em>username</em> <tt>:</tt> <em>password</em> combination to use for authenticating requests through a <tt>proxy</tt></li>
                <li><tt>referer</tt> - Referer URL to use for the request</li>
                <li><tt>useragent</tt> - UserAgent string to use for the request</li>
                <li><tt>userpwd</tt> - 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><tt>ssl_verifypeer</tt> - Whether to verify the server certificate against a list of known root certificate authorities (boolean).</li>
                <li><tt>hashcompat</tt> - Assuming the responses will be in <tt>key1=value1&amp;key2=value2</tt> format, reformat the response such that it can be used by the <tt>HASH</tt> function.</li>
        </ul>
        </li>
</ul>



<h3><a name="Function_CURLOPT-SeeAlso"></a>See Also</h3>
<p><a href="/wiki/display/AST/Function_CURL" title="Function_CURL">Function&#95;CURL</a><br/>
<a href="/wiki/display/AST/Function_HASH" title="Function_HASH">Function&#95;HASH</a></p>


<h3><a name="Function_CURLOPT-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-1.8-r353915.</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/Function_CURLOPT">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Function_CURLOPT?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>