locked
append custom http header values in request RRS feed

  • Question

  • User-687961554 posted
    im trying to accomplish the following:
    - create httpmodule that looks for a specific page on a site
    - if match then redirect to a login page
    - login page authenticates user; then redirects back to target site
    - the target site (Plumtree portal) expects to receive 2 custom http headers in the request; and authenticates user

    so basically, i want to pass custom headers in request from one site to another.

    ive researched this thing to death...this must be possible....im sure im missing something simple. pls help!

    ive come to realize that if i add headers using response.appendheader() then response.redirect; the custom headers get "lost" by the time its redirected to the target page which is expecting the custom headers

    so, ive created an httpmodule that appends the header for every request (proof of concept); but the target page is still not seeing the custom headers.

    should be expecting to see the custom headers
    NAFauth:CREA
    NAFid:1094684
     
    in the REQUEST?...i only see them in the RESPONSE...

    REQUEST
    (Request-Line):GET /portal/sso/ssologin.aspx HTTP/1.1
    Accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, image/azv, */*
    Referer:http://test.apps.realtorlink.ca/secure/naf/login/naflogin.aspx?targetUrl=http://beta.realtorlink.ca/portal/sso/ssologin.aspx
    Accept-Language:en-ca,en-us
    Cookie:ptrecentfolders=329-; PTCSCallbackFunction=; ASPSESSIONIDAARTCTAT=FAKNBCDDGCBGMJEMEMFHPPNH; ASP.NET_SessionId=umvvreixja1b2jz0xmzlwp45; NAF=sid=-478940052&cid=1094684&NAFid=1094684&NAFauth=CREA
    Accept-Encoding:gzip, deflate
    User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; image_azv; .NET CLR 1.1.4322)
    Connection:Keep-Alive
    Cache-Control:no-cache
    Host:beta.realtorlink.ca
    :

    RESPONSE
    (Status-Line):HTTP/1.1 302 Found
    Date:Sun, 17 Jul 2005 05:14:45 GMT
    Server:Microsoft-IIS/6.0
    X-Powered-By:ASP.NET
    X-AspNet-Version:1.1.4322
    NAFid:1094684
    NAFauth:CREA
    NAFid:1094684

    NAFauth:CREA
    Location:http://beta.realtorlink.ca/portal/server.pt
    Cache-Control:private
    Content-Type:text/html; charset=utf-8
    Content-Length:160


    thanks
    steph
    Sunday, July 17, 2005 1:27 AM

All replies

  • User214736870 posted

    Hi,

     I am trying something similar. Did you figure out a solution for this scenario/

    --srikanth
     

    Sunday, March 16, 2008 12:10 PM
  • User504616973 posted

    Have you guys have found any solutions to this issue?

    Tuesday, March 24, 2009 9:56 PM
  • User504616973 posted

    Have you guys have found any solutions to this issue?

    Tuesday, March 24, 2009 9:57 PM