API17:JHttp
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|11.1}} JHttp== | ||
| + | ===Description=== | ||
| + | {{Description:JHttp}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JHttp|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JHttp|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JHttp::__construct/11.1|__construct]] | |[[JHttp::__construct/11.1|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
| + | |public | ||
|[[JHttp::__destruct/11.1|__destruct]] | |[[JHttp::__destruct/11.1|__destruct]] | ||
|Destructor. | |Destructor. | ||
|- | |- | ||
| + | |public | ||
|[[JHttp::get/11.1|get]] | |[[JHttp::get/11.1|get]] | ||
|Method to send the GET command to the server. | |Method to send the GET command to the server. | ||
|- | |- | ||
| + | |public | ||
|[[JHttp::head/11.1|head]] | |[[JHttp::head/11.1|head]] | ||
|Method to send the HEAD command to the server. | |Method to send the HEAD command to the server. | ||
|- | |- | ||
| + | |public | ||
|[[JHttp::post/11.1|post]] | |[[JHttp::post/11.1|post]] | ||
|Method to send the POST command to the server. | |Method to send the POST command to the server. | ||
|- | |- | ||
| + | |protected | ||
|[[JHttp::_connect/11.1|_connect]] | |[[JHttp::_connect/11.1|_connect]] | ||
|Method to connect to a server and get the resource. | |Method to connect to a server and get the resource. | ||
|- | |- | ||
| + | |protected | ||
|[[JHttp::_getResponseObject/11.1|_getResponseObject]] | |[[JHttp::_getResponseObject/11.1|_getResponseObject]] | ||
|Method to get a response object from a server response. | |Method to get a response object from a server response. | ||
|- | |- | ||
| + | |protected | ||
|[[JHttp::_sendRequest/11.1|_sendRequest]] | |[[JHttp::_sendRequest/11.1|_sendRequest]] | ||
|Send a command to the server and validate an expected response. | |Send a command to the server and validate an expected response. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/client/http.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.client.http' );</source> | <source lang="php">jimport( 'joomla.client.http' );</source> | ||
===See also=== | ===See also=== | ||
| − | * JHttp source code | + | * {{JVer|11.1}} '''JHttp source code''' on [[jplatform:client/http.php|BitBucket]] |
| − | * [[JHttp|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Client/11.1|Client]] |
| + | * [[JHttp|Other versions of JHttp]] | ||
{{SeeAlso:JHttp}} | {{SeeAlso:JHttp}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JHttp|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JHttp|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 59: | Line 65: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JHttp]]</noinclude> | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JHttp]]</noinclude> | ||
Revision as of 18:05, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JHttp
Description
Description:JHttp [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | __destruct | Destructor. |
| public | get | Method to send the GET command to the server. |
| public | head | Method to send the HEAD command to the server. |
| public | post | Method to send the POST command to the server. |
| protected | _connect | Method to connect to a server and get the resource. |
| protected | _getResponseObject | Method to get a response object from a server response. |
| protected | _sendRequest | Send a command to the server and validate an expected response. |
- Defined in libraries/joomla/client/http.php
Importing
jimport( 'joomla.client.http' );
See also
-
JHttp source code on BitBucket
-
Subpackage Client
- Other versions of JHttp
User contributed notes
<CodeExamplesForm />
