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:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 7:34 PM
To: '[EMAIL PROTECTED]'
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:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]