Difference between revisions of "JHttp"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (→User contributed notes: bad link repair) |
||
(2 intermediate revisions by one other user not shown) | |||
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|Other versions of | + | * {{JVer|11.1}} '''JHttp source code''' on [[jplatform:client/http.php|BitBucket]] |
+ | * {{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 57: | 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 JClasses]][[Category:Platform 11.1]][[Category:JHttp]]</noinclude> |
Revision as of 13:53, 29 August 2012
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.
JHttp[edit]
Description[edit]
Template:Description:JHttp [Edit Descripton]
Methods[edit]
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[edit]
jimport( 'joomla.client.http' );
See also[edit]
- JHttp source code on BitBucket
- Subpackage Client
- Other versions of JHttp
Template:SeeAlso:JHttp [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />