Setting the URL |
To set the URL of an HTTP request construct a new HttpRequest instance providing the URL to the constructor. Alternatively you may invoke the HttpRequest#setURL method.
Example
// create new HttpRequest HttpRequest request = new HttpRequest("http://www.myserver.com"); |