Hi Patrick,

it depends on what needs to be done: the HttpState can be retrieved directly from the WebConnection (I write without checking the code, some small errors may be included ;-))

<groovy>
def state = step.context.webClient.webConnection.state
</groovy>

If the information of the state isn't enough, you need to access the HttpClient. The instance of HttpClient used by htmlunit is a member of htmlunit's HttpWebConnection but not accessible directly. In this case you can set your own WebConnection which extends HttpWebConnection and gives you the control you want to have.

Marc.

Patrick Eisenacher wrote:
Patrick Eisenacher wrote:
Hi list,

is there a way how I can access
- the negotiated protocol version
- the negotiated ciphersuite
- the owner of the server's certificate
- the issuer of the server's certificate
- the validity of the server's certificate
- other SSL or certificate parameters
of a secure connection?

Is there even a way how I can specify the list of
ciphersuites offered
and the protocol version that the client wants to speak? Session
resumption handling would be another interest for verification.

Marc Guillemot wrote:
I have no idea of what is possible but you surely need to investigate in
jakarta's commons-httpclient API to find an answer.

Hi Marc,

thanks for the pointer. I now have the API specification in front of me. How
would I go about using it from within webtest? Can you provide a small
snippet?

Thank you,
Patrick Eisenacher

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to