Change default request timeout

wc_timeout(wc_obj, timeout)

Arguments

wc_obj

a webclient object

timeout

timeout (ms); The timeout is used twice. The first is for making the socket connection, the second is for data retrieval. If the time is critical you must allow for twice the time specified here.

Value

the webclient object (invisibly)

Note

The caller does not have to assign the output of this function to a variable as the browser state is managed internally by HtmlUnit.

See also