Sending the HTTP request

Top  Previous  Next

To send the HTTP request invoke the Http#getResponse method passing an HttpRequest as an argument.

 

Example

 

// create new HttpRequest

HttpRequest request = new HttpRequest("http://www.myserver.com");

 

// create new Http instance

Http http = new Http();

 

// get response

HttpResponse response = http.getResponse(request);





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC