WHITE PAPERS  |  PRICING  |  DOWNLOADS

 

username

password

 

 

 

 

 

 

 

 

 

 

  Server Edition Details  

 

  > Features  

  > Key Benefits  

  > Screenshots  

  > Standards Supported  

  > Pricing  

  > Download Now

 

 

  Developer Resources  

 

  > API Documentation  

  > Developers Guide  

  > Code Examples  

  > Updated Builds  

  > Technical Articles  

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

Application test examples

 

Deploying WebRenderer

WebRenderer DOM

  

  

 

WebRenderer HTTP functions

 

 

 

WebRenderer HTTP functions

WebRenderer has some useful HTTP functions that make posting forms and logging into servers an automated process, where no user interaction is required.

HTTP POST

IBrowserCanvas browser = BrowserFactory.spawnMozilla();
browser.httpPOST("url", "POST data");

example of logging into WebRenderer:
browser.httpPOST("http://www.webrenderer.com", "username=test&password=test");

//POSTing with a file
File myfile = new File("myfile.txt");
browser.httpPOST("http://www.myserver.com", myfile, "fileformvariablename=myfile");

//POST with a file and additional POST data
browser.httpPOST("http://www.myserver.com", myfile, "fileformvariablename=myfile", "myformvar=myvalue"); 

HTTP GET

The IBrowserCanvas method loadURL can be used to do an HTTP GET request.

Example:
browser.loadURL("http://www.webrenderer.com?username=test&password=test");

  top

 

 

 Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries 

Privacy Policy  |   Disclaimer