setUrl
public boolean setUrl(String url,
String postData,
String[] headers)Begins loading a URL. The loading of its content occurs asynchronously.
If the URL causes an HTTP request to be initiated then the provided postData and header arguments, if any, are sent with the request. A value in the headers argument must be a name-value pair with a colon separator in order to be sent (for example: "user-agent: custom").
Parameters:
url - the URL to be loaded
postData - post data to be sent with the request, or null
headers - header lines to be sent with the request, or null
Returns:
true if the operation was successful and false otherwise.
Throws:
IllegalArgumentException -
•ERROR_NULL_ARGUMENT - if the url is null
SWTException -
•ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
•ERROR_WIDGET_DISPOSED when the widget has been disposed
Since:
3.6