API17

Difference between revisions of "JHttp:: sendRequest"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHttp::_sendRequest|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHttp::_sendRequest|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
protected JHttp::_sendRequest ($connection, $method, JUri $uri, $data=null, $headers=null)
+
protected function _sendRequest (
 +
        $connection
 +
        $method
 +
        JUri $uri
 +
        $data=null
 +
        $headers=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 47: Line 50:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' bool True on success.
bool True on success.
+
* '''Defined''' on line 183 of libraries/joomla/client/http.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/client/http.php (line 183)
 
* see source code in [[jplatform:client/http.php#cl-183|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHttp::_sendRequest source code''' on [[jplatform:client/http.php#cl-175|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHttp/11.1|JHttp]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Client/11.1|Client]]
 +
* [[JHttp::_sendRequest|Other versions of JHttp::_sendRequest]]
 +
{{SeeAlso:JHttp::_sendRequest}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHttp::_sendRequest|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHttp::_sendRequest|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHttp/11.1|JHttp]]
+
===User contributed notes===
* [[JHttp::_sendRequest|Other versions of this method]]
 
{{SeeAlso:JHttp::_sendRequest}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 68: Line 70:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHttp]][[Category:JHttp::_sendRequest]]</noinclude>
 
<noinclude>[[Category:JHttp]][[Category:JHttp::_sendRequest]]</noinclude>

Revision as of 21:09, 27 April 2011

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JHttp::_sendRequest[edit]

Description[edit]

Send a command to the server and validate an expected response.

Template:Description:JHttp:: sendRequest [Edit Descripton]

protected function _sendRequest (
        $connection
        $method
        JUri $uri
        $data=null
        $headers=null
)
Parameter Type Default Description
$connection
$method mixed Valid response code or array of response codes.
JUri $uri
$data null
$headers null
  • Returns bool True on success.
  • Defined on line 183 of libraries/joomla/client/http.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JHttp:: sendRequest [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />