[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cookie problems V 1.29



Ian,

HTTPAPI has had cookie support since version 1.14, though it was turned off by default until 1.16. But, since both of these are older than 1.20, I'm guessing that someone in your organization must have disabled it when you installed 1.20. Since 1.20 was 8 years ago, there's a good chance that you would no longer remember doing this.

If you need it disabled, probably the best solution is to put a call in your program to disable it. That way, future upgrades will keep working because the cookie support has been disabled in your program rather than in HTTPAPI, so you won't need to modify HTTPAPI each time.

To do this, put this in your code:

      callp httpapi_use_cookies(*off)


I see in your e-mail that you tried calling HTTP_COOKIE_DEFAULT. This is a constant, not a procedure, so it cannot be called. But, http_use_cookies() is a procedure and is designed for this. The procedures you can call are listed in the httpapi_h member -- look for "PR" after the name, that will tell you that it's callable. When you see "C" after the name, it's a constant. When you see "S", it's a variable, or "DS" is a datastructure. Those cannot be called, only the ones with "PR".

Good luck.

-SK



On 6/15/2015 10:52 AM, Ian Patterson wrote:
    Having looked again at my program I think there may be two cookie
    parameters in the POST header.

    I have tried to switch off the default cookie processing but can't get
    the syntax right.


    In the includes I have this:

    0002.71
    167+***

    0002.72    168+*** This determines whether Cookies are turned *ON or
    *OFF

    0002.73    169+*** by
    default.

    0002.74
    170+***

    0002.75
    171+DHTTP_COOKIE_DEFAULT...

    0002.76    172+D                 C
    CONST(*ON)

    0002.77
    173+


    In my calcs I have this:

    0310.00
    c*

    0311.00 c                   callp
    HTTP_COOKIE_DEFAULT(*OFF)

    0312.00
    c*


    But get compiler error RNF7541

    Array index or parameter is not allowed for name.

    What have I missed?


    Regards


    Ian Patterson



-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------