public int getIntHeader(java.lang.String name)
The default behavior of this method is to return getIntHeader(String name) on the wrapped request object.
getIntHeader in interface HttpServletRequest
Following copied from interface: javax.servlet.http.HttpServletRequest
name - a String specifying the name of a request header
an integer expressing the value of the request header or -1 if the request doesn't have a header of this name
java.lang.NumberFormatException - If the header value can't be converted to an int
hope it makes you clear..
[ February 24, 2007: Message edited by: Saif uddin ]
Originally posted by Reema Patel:
I'm trying to read an int header from the request in doGet() method.
But, on the browser I'm getting -1 for both the headers. Why is that so?
Any help shall be highly appreciated.
You can use any tool that shows you the raw HTTP request.That will help you to see what exatcly the browser is sending..
you can use tcpmon , this somes with axis and there are many more in the web.