commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reidar Horning <Thyr...@compuserve.de>
Subject [HttpClient] trace question
Date Sat, 29 May 2004 22:49:09 GMT
Hello,

I've tested the trace method of HttpClient using the code below.
Unfortunately I never get "Via"-fields in the header, declared in
rfc2616. 

Can somebody explain this behaviour?

Much thanks in advance! 
Reidar

Code:

HttpClient hc = new HttpClient();
TraceMethod m = new TraceMethod("http://jakarta.apache.org");
hc.executeMethod(m);

Header[] h = m.getResponseHeaders();
for (int i = 0; i < h.length; i++) {
  System.out.println(h[i].getName());
}
...



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message