sets the connection timeout in milliseconds (2000)
sets the read timeout in milliseconds (5000)
enabled automatic following of redirects (true)
sets the maximum times a cyclic redirect will be followed (20)
enables the use of content caches (true)
when true, persistent keep-alive HTTP1.1 connections are used (true)
sets the string that is used to identify this client to the server
supplies the proxy configuration (NO_PROXY). See http://docs.oracle.com/javase/6/docs/api/java/net/Proxy.html
provides a credentials source (empty) -- experimental
an optional SSL hostname verifier to be used on all requests. This is similar to setting the global state via HttpsURLConnection.setDefaultHostnameVerifier, except that, this way, it is possible to configure multiple clients each with their own hostname verifier.
an optional SSL socket factory to be used on all requests. This is similar to setting the global state via HttpsURLConnection.setDefaultSSLSocketFactory, except that, this way, it is possible to configure multiple clients each with their own socket factory.
headers sent on every request, in addition to those cited in each particular request
provides the pre-request handlers to configure headers etc on every request using Config.standardSetup, i.e. (List(uk.co.bigbeeconsultants.http.request.AutomaticHostHeader, uk.co.bigbeeconsultants.http.request.DefaultRequestHeaders, uk.co.bigbeeconsultants.http.request.ConnectionControl, uk.co.bigbeeconsultants.http.request.UserAgentString, uk.co.bigbeeconsultants.http.request.SSLSocketFactoryInjecter, uk.co.bigbeeconsultants.http.request.HostnameVerifierInjecter))
Constructs a new copy of this
that suppresses the normal SSL/TLS security checks.
Constructs a new copy of this
that suppresses the normal SSL/TLS security checks. This applies
both allowInsecureSSLHostnames
and allowInsecureSSLCertificates
.
This will allow insecure https connections and must be used with care. Using this is similar to "curl -k" and is useful for self-signed certificates, typically during development only. Be very careful not to use it where security matters.
Note that there is an alternative: you can capture the self-signed certificate with your web browser and put it in your keystore. Both techniques are described here: http://stackoverflow.com/questions/2893819/telling-java-to-accept-self-signed-ssl-certificate
Constructs a new copy of this
that suppresses the normal SSL/TLS certificate checks.
Constructs a new copy of this
that suppresses the normal SSL/TLS certificate checks. This will allow
insecure https connections and must be used with care.
Constructs a new copy of this
that suppresses the normal SSL/TLS security checks on hostnames.
Constructs a new copy of this
that suppresses the normal SSL/TLS security checks on hostnames. This will allow
insecure https connections and must be used with care.
headers sent on every request, in addition to those cited in each particular request
sets the connection timeout in milliseconds (2000)
provides a credentials source (empty) -- experimental
enabled automatic following of redirects (true)
an optional SSL hostname verifier to be used on all requests.
an optional SSL hostname verifier to be used on all requests. This is similar to setting the global state via HttpsURLConnection.setDefaultHostnameVerifier, except that, this way, it is possible to configure multiple clients each with their own hostname verifier.
when true, persistent keep-alive HTTP1.
when true, persistent keep-alive HTTP1.1 connections are used (true)
sets the maximum times a cyclic redirect will be followed (20)
provides the pre-request handlers to configure headers etc on every request using Config.
provides the pre-request handlers to configure headers etc on every request using Config.standardSetup, i.e. (List(uk.co.bigbeeconsultants.http.request.AutomaticHostHeader, uk.co.bigbeeconsultants.http.request.DefaultRequestHeaders, uk.co.bigbeeconsultants.http.request.ConnectionControl, uk.co.bigbeeconsultants.http.request.UserAgentString, uk.co.bigbeeconsultants.http.request.SSLSocketFactoryInjecter, uk.co.bigbeeconsultants.http.request.HostnameVerifierInjecter))
supplies the proxy configuration (NO_PROXY).
supplies the proxy configuration (NO_PROXY). See http://docs.oracle.com/javase/6/docs/api/java/net/Proxy.html
sets the read timeout in milliseconds (5000)
an optional SSL socket factory to be used on all requests.
an optional SSL socket factory to be used on all requests. This is similar to setting the global state via HttpsURLConnection.setDefaultSSLSocketFactory, except that, this way, it is possible to configure multiple clients each with their own socket factory.
enables the use of content caches (true)
sets the string that is used to identify this client to the server
Specifies configuration options that will be used across many requests or for a particular request.
sets the connection timeout in milliseconds (2000)
sets the read timeout in milliseconds (5000)
enabled automatic following of redirects (true)
sets the maximum times a cyclic redirect will be followed (20)
enables the use of content caches (true)
when true, persistent keep-alive HTTP1.1 connections are used (true)
sets the string that is used to identify this client to the server
supplies the proxy configuration (NO_PROXY). See http://docs.oracle.com/javase/6/docs/api/java/net/Proxy.html
provides a credentials source (empty) -- experimental
an optional SSL hostname verifier to be used on all requests. This is similar to setting the global state via HttpsURLConnection.setDefaultHostnameVerifier, except that, this way, it is possible to configure multiple clients each with their own hostname verifier.
an optional SSL socket factory to be used on all requests. This is similar to setting the global state via HttpsURLConnection.setDefaultSSLSocketFactory, except that, this way, it is possible to configure multiple clients each with their own socket factory.
headers sent on every request, in addition to those cited in each particular request
provides the pre-request handlers to configure headers etc on every request using Config.standardSetup, i.e. (List(uk.co.bigbeeconsultants.http.request.AutomaticHostHeader, uk.co.bigbeeconsultants.http.request.DefaultRequestHeaders, uk.co.bigbeeconsultants.http.request.ConnectionControl, uk.co.bigbeeconsultants.http.request.UserAgentString, uk.co.bigbeeconsultants.http.request.SSLSocketFactoryInjecter, uk.co.bigbeeconsultants.http.request.HostnameVerifierInjecter))