Robert,

That header will only get sent to the browser (since the response is sent to
the browser and then the browser initiates a redirect).  Sorry, that
completely slipped my mind until you just mentioned it.

-Scott

On Mon, Feb 25, 2008 at 2:00 PM, Robert, Brice <
[EMAIL PROTECTED]> wrote:

> Help,
>
> I thought I had this right;
> I added my own implementation of DynamicRedirectViewSelector by adding
> the following code to add a header to the response.
>
> /*--Begin---*/
> HttpServletResponse response = WebUtils.getHttpServletResponse(context);
> response.addHeader("USER", "brober1");
> /*--End---*/
>
> It works in the redirection but it is not carried along with the final
> response that has all the original headers, cookies, ...
>
> -- Trace from TcpMonitor --------------
>
> HTTP/1.1 302 Moved Temporarily
> Server: Apache-Coyote/1.1
> X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA
> date=200707131605)/Tomcat-5.5
> Pragma: No-cache
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Cache-Control: no-cache
> Cache-Control: no-store
> Set-Cookie: CASPRIVACY=; Expires=Thu, 01-Jan-1970 00:00:10 GMT;
> Path=/cas-web
> Set-Cookie:
> CASTGC=TGT-2-QeFfWzLRlVCya5GYAExZudUoLKjZXAVfLAM3yhzhMc0DzBr65S;
> Path=/cas-web; Secure
> <<<< USER: brober1 >>>>
> Location:
> http://amarld02.acml.com:9080/rbs/RBSWebMgr?Action=SSOLogin&ticket=ST-2-
> 0qyOJzJzOHEPCaJOZGvQ
> Content-Language<http://amarld02.acml.com:9080/rbs/RBSWebMgr?Action=SSOLogin&ticket=ST-2-0qyOJzJzOHEPCaJOZGvQContent-Language>:
> en-US
> Content-Length: 0
> Date: Mon, 25 Feb 2008 18:34:44 GMT
>
> -- Trace from TcpMonitor --------------
>
> On Tue Jan 29 15:31:03 EST 2008, Scott Battaglia scott.battaglia at
> gmail.com wrote:
>
> >You'll want to create a Custom ViewSelector (see the one we use as an
> >example) that can set the required header for you.  Then, configure
> that as
> >a replacement to the one that already is configured.
>
> >-Scott
>
> On Jan 28, 2008 12:09 PM, Robert, Brice <Brice.Robert at
> alliancebernstein.com>
> wrote:
>
> >  Hi,
> >
> >
> > Which Spring bean do I have to implement to add my header to the POST
> sent
> > to CAS?
> >
> >
> >
> > POST
> /cas-web/login?service=http://amarld02.acml.com:20000/cfsiq-web&renew=tr
> ue
> > HTTP/1.1 <http://amarld02.acml.com:20000/cfsiq-web&renew=trueHTTP/1.1>
> >
> > Accept: */*
> >
> > Referer:
> >
> http://amaxpdd-6efc3.ac.lp.acml.com:7777/cas-web/login?service=http://am
> arld02.acml.com:20000/cfsiq-web&renew=true
> >
> > Accept-Language: en-us,fr-ca;q=0.5
> >
> > Content-Type: application/x-www-form-urlencoded
> >
> > Accept-Encoding: gzip, deflate
> >
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
> .NET
> > CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
> >
> > Host: amaxpdd-6efc3.ac.lp.acml.com:7777
> >
> > Content-Length: 138
> >
> > Connection: Keep-Alive
> >
> > Cache-Control: no-cache
> >
> > USER: user1 <<<<<  CUSTOM HEADER FIELD >>>>>>
> >
> > Cookie: PortalLoginCookie=20026743_user1_NY-AMA_My_Name;
> > JSESSIONID=429BABC53D3C22E5771B29246A4690D3
> >
> >
> >
> >
> >
> username=user1&password=asd&lt=_c1945636C-810E-9892-DFC6-4D7EDFC9C760_kE
> 777EEEE-CFFF-23D5-B07F-098695ACDE9C&_eventId=submit&submit=LOGIN
> >
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://tp.its.yale.edu/pipermail/cas/attachments/20080129/005aacc4/attac
> hment.html<http://tp.its.yale.edu/pipermail/cas/attachments/20080129/005aacc4/attachment.html>
>
> -----------------------------------------
> The information contained in this transmission may be privileged and
> confidential and is intended only for the use of the person(s) named
> above. If you are not the intended recipient, or an employee or agent
> responsible
> for delivering this message to the intended recipient, any review,
> dissemination,
> distribution or duplication of this communication is strictly prohibited.
> If you are
> not the intended recipient, please contact the sender immediately by reply
> e-mail
> and destroy all copies of the original message. Please note that we do not
> accept
> account orders and/or instructions by e-mail, and therefore will not be
> responsible
> for carrying out such orders and/or instructions.  If you, as the intended
> recipient
> of this message, the purpose of which is to inform and update our clients,
> prospects
> and consultants of developments relating to our services and products,
> would not
> like to receive further e-mail correspondence from the sender, please
> "reply" to the
> sender indicating your wishes.  In the U.S.: 1345 Avenue of the Americas,
> New York,
> NY 10105.
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to