Can you give more information about what you are trying to do?

Depending on what you are attempting to achieve (this code is not complete)
you could do something like this:
URL url = new URL(requestUrl.toString());
....
HttpURLConnection connection = (HttpURLConnection)url.openConnection();

connection.setRequestProperty("Content-Type", "text/html");
connection.setRequestProperty("Accept", "text/html, text/xml");
connection.setRequestProperty("Host", url.getHost());
connection.setRequestMethod("GET");

-----Original Message-----
From: Matthew W Hartley [mailto:mhartley@;us.ibm.com]
Sent: Thursday, November 14, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: Setting Http Headers on Tomcat






Hi All,

Does anyone know how to set an HTTP Header on Tomcat, without using a
servlet?

Thanks

Matt


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to