>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Cookie decoding error
davin.church
Cookie decoding error
Posted: Thursday, July 01, 2004 7:59 PM (EST)

Ok, here's a new one for you...  I'm having trouble with the system decoding incoming cookies.

 

Web services is set to decode and pass a Cookie argument to my function, and it normally comes in decoded as a nested 2-column matrix.  Here's what the HTML header line looks like coming from an IE browser before it's decoded:

Cookie: Talisman=Davin/xxx

If I use an APL function to perform this same (browser-like) action, and pass it the same header, APL WS also decodes it successfully into the matrix.  However, if (using my APL function) I instead pass it:

Cookie: $Version=1,Talisman=Davin/xxx

then the cookie is *not* decoded properly into a 2-column matrix.  (It's just returned as-is, undecoded.)

 

This format (with $Version) is a valid cookie format and it is accepted by all other web sites I've tried it with.  (I'm not sure why IE isn't sending it in this format in the first place.)

 

Therefore, APL WS needs to accept more flexible formats for cookies so that it can decode all legal things that might be passed to it.

 


Comments:

Author Thread:
davin.church
Cookie decoding error
Posted: Monday, August 16, 2004 1:06 PM (EST)

*bump*

 

Has this problem been found and/or fixed yet?  I'm still having to maintain two parallel copies of code depending on whether I'm talking to an APL+WebServices site or a normal web site.

     

Jairo.Lopez
Cookie decoding error
Posted: Tuesday, August 17, 2004 10:44 AM (EST)

Davin,

 

When you use the 'cookie' type argument in AplWebServices the system only reads the 'Cookie:' header value and passes the string to the function.

The only types that create and Nx2 matrix are 'entity-body-decoded' and 'header-parsed'

You can find a full description of the types and their values in the APLDN Library under "APL Web Services Reference" / "virtualpath" / "Properties" / "larg".

     



APL2000 Official Web Site

People rarely succeed unless they have fun in what they are doing.
--- Dale Carnegie

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |