Index
Name

PClient

Description 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.
Methods
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.

Constructors
PClient(midlet, server)
PClient(midlet, server, port)
Parameters
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

Related PRequest