ISAPI, CAPICOM , and Carriage Control Line Feed

Discussion in 'C++' started by Neil S., Aug 18, 2004.

  1. Neil S.

    Neil S. Guest

    I am writing an ISAPI filter which is using CAPICOM to encrypt and
    decrypt cookie information. I've found that the encryption string
    being returned by CAPICOM a has carriage control and line feed. (Hex
    0d0a). My filter adds the header in the correct format, including the
    entire encrypted cookie value (set-cookie:
    mycookie=theEncryptedValue;path=/;). However, when the isapi filter
    finishes running, the browser only gets part of the cookie, up to
    where the line feed character occured.

    Does anyone have any ideas as to why this is happening? Is there a
    compiler setting I'm missing? Shouldn't that have been url encoded?
    I'm a bit of a newbie to this language, so I apologize if this has an
    obvious answer.

    Thanks in advance.
    Neil S., Aug 18, 2004
    #1
    1. Advertising

  2. In message <>, Neil S.
    <> writes
    >I am writing an ISAPI filter which is using CAPICOM to encrypt and
    >decrypt cookie information. I've found that the encryption string
    >being returned by CAPICOM a has carriage control and line feed. (Hex
    >0d0a). My filter adds the header in the correct format, including the
    >entire encrypted cookie value (set-cookie:
    >mycookie=theEncryptedValue;path=/;). However, when the isapi filter
    >finishes running, the browser only gets part of the cookie, up to
    >where the line feed character occured.


    I'm sorry to hear it. But what was your question about C++ ?

    http://www.slack.net/~shiva/welcome.txt
    >
    >Does anyone have any ideas as to why this is happening? Is there a
    >compiler setting I'm missing? Shouldn't that have been url encoded?
    >I'm a bit of a newbie to this language, so I apologize if this has an
    >obvious answer.
    >
    >Thanks in advance.


    --
    Richard Herring
    Richard Herring, Aug 20, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave Tichenor
    Replies:
    3
    Views:
    32,103
    Steven Cheng[MSFT]
    Feb 17, 2004
  2. Andrew
    Replies:
    6
    Views:
    3,548
    Andrew
    Dec 9, 2003
  3. Replies:
    2
    Views:
    3,523
  4. Gary at Arrowpoint

    Access is Denied Exception using Interop.CAPICOM.dll (or CAPICOM.d

    Gary at Arrowpoint, Aug 30, 2005, in forum: ASP .Net Security
    Replies:
    0
    Views:
    338
    Gary at Arrowpoint
    Aug 30, 2005
  5. OutlookNewbieDev

    carriage return and line feed characters are lost when passed in p

    OutlookNewbieDev, Oct 28, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    164
    OutlookNewbieDev
    Oct 28, 2005
Loading...

Share This Page