makeGETRequest

Sting sutil.makeGETRequest ( String url )

Description

Retrieve the response contents of a GET request.

Parameters

  • url URL encoded version of page request, as a string. Java provides a URLEncoder to aid in URL encoding of a string.

Return Values

Returns contents of the response, as a string.

Change Log

Version Description
5.0 Added for all editions.

This method will use any proxy settings that have been specified in the Settings dialog box.

Examples

Retrieve Page Contents

 // Returns contents resulting from
 // request to "http://www.screen-scraper.com"

 pageContents = sutil.makeGETRequest("http://www.screen-scraper.com/tutorial/basic_form.php?text_string=Hello+World");