public final class Probe extends Http
DEBUGGING, DEFAULT_LENGTH, DEFAULT_RESPONSE_CODE, DEFAULT_RESPONSE_MESSAGE, EMBEDDED_COPYRIGHT, readTimeout, responseCode, responseMessage, url, UTF8Charset, VERSION_STRING
Constructor and Description |
---|
Probe()
constructor
|
Modifier and Type | Method and Description |
---|---|
int |
send(java.lang.String host,
int port,
java.lang.String action)
Send a form full of data to the CGI host using HEAD/GET.
|
int |
send(java.net.URL url)
Check if a URL is working.
|
dumpHeaders, getEncodedParms, getRawResponseMessage, getReferer, getResponseCode, getResponseMessage, getURL, guessCharSet, processResponse, setConnectTimeout, setInstanceFollowRedirects, setParms, setReadTimeout, setReferer, setRequestProperties, setStandardProperties, setUserAgent
public int send(java.net.URL url)
url
- complete URL including get parm, http: or https:public int send(java.lang.String host, int port, java.lang.String action)
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 /.