Re: Queries regarding Request Object



On Wed, 2005-05-11 at 03:37 -0700, anandmohans@xxxxxxxxx wrote:
> Hi All,
>
> I have a few queries regarding request object.
>
> In a servlet, when we write request.setAttribute(); does it increase
> the request header size?
>
> In other words: what is the default size of request header (if any)?
> What happens when we keep on adding objects to it?
>
>
> Regards,
> Anand
>

Attributes are simply request-scoped object references that are used to
both pass you extra information, and for you to pass things around an
individual request.

The request headers are separate - these are actually sent with the
request by the client. Once you have them they are already sent over the
wire so in that respect size doesn't matter. They don't automagically
get sent back - the response has a separate set of Headers you can use
to do that.

Relevant methods:

javax.servlet.ServletRequest.getAttribute() (et al.)
javax.servlet.http.HttpServletRequest.getHeader() (et al.)
javax.servlet.http.HttpServletResponse.setHeader() (et al.)

Cheers,
Ross

--
[Ross A. Bamford] [ross AT the.website.domain]
Roscopeco Open Tech ++ Open Source + Java + Apache + CMF
http://www.roscopec0.f9.co.uk/ + info@xxxxxxxxxxxxxxxxxx


.



Relevant Pages

  • Re: Intermittent E_NOINTERFACE error, possibly RPC related
    ... solution, astoudingly, was to change the request header, so that if your ... browser sent a request ... compressed and solve their perceived problem. ... If they really want to scrutinize the data, ...
    (microsoft.public.win32.programmer.networks)
  • Re: HTTP Post Authentication
    ... Credentials are stored in the database, ... The customer is making a request to webpage1.aspx and performing an http ... licenseKey as a request header and how does the application then read it in ... Can custom request headers be made or can I fill this ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: HttpWebRequest Exception on HTTP/1.0 204 No Content
    ... and do a request header in the asp.net page. ... I have used the http request like this;-) ... To control the camera I have to send request on a CGI on it. ...
    (microsoft.public.dotnet.general)
  • Send current user token to IIS server
    ... I know that in intranet, the IE sends user token in the request header to enable single-sign-on. ...
    (microsoft.public.security)
  • Re: Frontpage 2003 - Global.asa question
    ... I have used ASP since ... However, for the benefit of others, I will answer your innuendo: The Request ... The blanket statement "several instances why the server variables may never ... > are discussing -- using the Request object to capture data in the server ...
    (microsoft.public.frontpage.programming)

Loading