<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The setRequestEngine purpose</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="oauth.setnonce.html">OAuth::setNonce</a></div> <div class="next" style="text-align: right; float: right;"><a href="oauth.setrsacertificate.html">OAuth::setRSACertificate</a></div> <div class="up"><a href="class.oauth.html">OAuth</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="oauth.setrequestengine" class="refentry"> <div class="refnamediv"> <h1 class="refname">OAuth::setRequestEngine</h1> <p class="verinfo">(PECL OAuth >= 1.0.0)</p><p class="refpurpose"><span class="refname">OAuth::setRequestEngine</span> — <span class="dc-title">The setRequestEngine purpose</span></p> </div> <div class="refsect1 description" id="refsect1-oauth.setrequestengine-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>OAuth::setRequestEngine</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$reqengine</code></span> )</div> <p class="para rdfs-comment"> Sets the Request Engine, that will be sending the HTTP requests. </p> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is currently not documented; only its argument list is available. </p></div> </div> <div class="refsect1 parameters" id="refsect1-oauth.setrequestengine-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">reqengine</code></em></span> <dd> <p class="para"> The desired request engine. Set to <strong><code>OAUTH_REQENGINE_STREAMS</code></strong> to use PHP Streams, or <strong><code>OAUTH_REQENGINE_CURL</code></strong> to use <a href="book.curl.html" class="link">Curl</a>. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-oauth.setrequestengine-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> <div class="refsect1 errors" id="refsect1-oauth.setrequestengine-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> Emits an <a href="class.oauthexception.html" class="classname">OAuthException</a> exception if an invalid request engine is chosen. </p> </div> <div class="refsect1 examples" id="refsect1-oauth.setrequestengine-examples"> <h3 class="title">Examples</h3> <div class="example" id="example-5286"> <p><strong>Example #1 <span class="function"><strong>OAuth::setRequestEngine()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />$consumer </span><span style="color: #007700">= new </span><span style="color: #0000BB">OAuth</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$consumer</span><span style="color: #007700">-></span><span style="color: #0000BB">setRequestEngine</span><span style="color: #007700">(</span><span style="color: #0000BB">OAUTH_REQENGINE_STREAMS</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </div> <div class="refsect1 seealso" id="refsect1-oauth.setrequestengine-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"><a href="book.curl.html" class="link">Curl</a></li> <li class="member"><a href="book.stream.html" class="link">PHP streams</a></li> <li class="member"><a href="class.oauthexception.html" class="classname">OAuthException</a></li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="oauth.setnonce.html">OAuth::setNonce</a></div> <div class="next" style="text-align: right; float: right;"><a href="oauth.setrsacertificate.html">OAuth::setRSACertificate</a></div> <div class="up"><a href="class.oauth.html">OAuth</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>