You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Oliver Nautsch <o....@nautsch.com> on 2003/04/09 09:17:26 UTC

read http headers from response?

Hello,

I want to read the http-headers from a response (incoming message) 
on the client side but I can't find a solution.

To write your own headers into a http-request you can use:

...
    Hashtable myHeaders = new Hashtable()
    myHeaders.put("MyHeaderKey", "MyHeaderValue");
    ...
    
    Service theService = new Service();
    Call theCall = theService.createCall();
    
    theCall.setProperty(HTTPConstants.REQUEST_HEADERS, myHeaders);
...

My question:
How can I get the headers from a http-response?

Regards 
Oliver Nautsch