public final class Get extends Http
DEBUGGING, DEFAULT_LENGTH, DEFAULT_RESPONSE_CODE, DEFAULT_RESPONSE_MESSAGE, EMBEDDED_COPYRIGHT, readTimeout, responseCode, responseMessage, url, UTF8Charset, VERSION_STRING
Constructor and Description |
---|
Get()
constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
send(java.lang.String host,
int port,
java.lang.String action,
java.nio.charset.Charset encoding)
Send a form full of data to the CGI host using GET.
|
java.lang.String |
send(java.net.URL url,
java.nio.charset.Charset encoding)
Send a form full of data to the CGI host using GET.
|
dumpHeaders, getEncodedParms, getRawResponseMessage, getReferer, getResponseCode, getResponseMessage, getURL, guessCharSet, processResponse, setConnectTimeout, setInstanceFollowRedirects, setParms, setReadTimeout, setReferer, setRequestProperties, setStandardProperties, setUserAgent
public java.lang.String send(java.net.URL url, java.nio.charset.Charset encoding)
url
- complete URL including get parms, pre-encoded, http: or https:.encoding
- encoding of the byte stream result, usually UTF-8 or or ISO-8859-1.Get
public java.lang.String send(java.lang.String host, int port, java.lang.String action, java.nio.charset.Charset encoding)
host
- host name of the website, Should be form:"mindprod.com", no lead http://.port
- -1 if default, 8081 for local echoserver.action
- action of form, page on website. Usually has a lead / and no trailing /.encoding
- encoding of the byte stream result, usually UTF-8 or or ISO-8859-1.