hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Castillo <casti...@counterpane.com>
Subject RE: Grabbing a header from the server's response
Date Wed, 20 Aug 2003 17:56:57 GMT
Ah, thank you all. I was looking all over the javadocs, but couldn't find
which classes to use.

-----Original Message-----
From: ross_r@bellsouth.net [mailto:ross_r@bellsouth.net]
Sent: Tuesday, August 19, 2003 5:48 PM
To: 'Commons HttpClient Project'
Subject: RE: Grabbing a header from the server's response


I do it like this, for example, to get the new URL from the location header:
	Header header = httpget.getResponseHeader("Location");
	String newuri = header.getValue();

Ross


-----
get lined up at http://www.careerfish.com

-----Original Message-----
From: Mark Castillo [mailto:castillo@counterpane.com] 
Sent: Tuesday, August 19, 2003 7:34 PM
To: 'commons-httpclient-dev@jakarta.apache.org'
Subject: Grabbing a header from the server's response

After sending a GET request to a server, how to I pick out the name/value of
a specific header from the server's response?

Thank you. 

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


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

Mime
View raw message