Home » Developer & Programmer » JDeveloper, Java & XML » HTTP Header manipulation?
HTTP Header manipulation? [message #92019] Tue, 03 February 2004 07:13 Go to next message
woodchuck
Messages: 12
Registered: May 2003
Junior Member
hello,

does anyone know how to add our own custom header info into the header?  (ie. to add our own name-value pairs)

so that if i wanted to add my own header called "my_header" with a value of "Hello!", i could get this information by the following:

String value = request.getHeader("my_header");

 

thx in advance!
Re: HTTP Header manipulation? [message #92169 is a reply to message #92019] Wed, 31 March 2004 07:13 Go to previous message
Kelvin
Messages: 6
Registered: January 2002
Junior Member
use servlet filter API to set reponse header.
but it is hard to set incoming request header, which is rarely needed.
Previous Topic: Java File Permissions
Next Topic: getting No Data Found Exception while calling a procedure in oracle from Java Program
Goto Forum:
  


Current Time: Thu Apr 18 12:38:53 CDT 2024