PClient
|
|
The PClient object is used to initiate network requests to
web servers on the Internet. It supports the two most common methods
of the Hypertext Transfer Protocol (HTTP), GET and POST, allowing it
to communicate with servers as if it were a desktop web browser. Both
methods initiate a new network request and return a PRequest object used
to track the request and read the returned data. |
|
setAuthorization()
|
|
Sets up HTTP Basic authentication.
|
|
GET()
|
|
The GET method is used to fetch data from a web server.
|
|
POST()
|
|
The POST method is used to submit data to a web server to be processed.
|
|
PClient(midlet, server)
PClient(midlet, server, port)
|
| port |
|
int: optional port number to read/write from on the server
|
| midlet |
|
PMIDlet: typically use "this"
|
| server |
|
String: name or IP address of server
|
|
PRequest
|