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

Re: [Ftpapi] header_get_req_cookies



Hi Dennis,

Thanks for pointing that out!  I did not notice that before.

The way I usually handle this sort of problem is by coding it as a Unicode constant, and then adding that into the string.  This works similarly to your idea of using database access -- it translates to the current CCSID, whatever that might happen to be.  However, it does not have the extra overhead of reading something from disk.

If I make that change, will you test it for me?

-SK


On 3/2/2018 6:57 PM, Dennis Liu wrote:
Scott, first of all, I am a huge fan. Thank you very much for everything you have done to help all of us to become a better iSeries developer.

I recently encountered an issue in this procedure. As you can see, the string '$Version=' is coded in this procedure. When I run my program in our Chinese company where the CCSID is 1388, the dollar sign becomes '¥'. So you will see a string like this: 'Cookie: ¥Version=0;'. This caused the post action failed. I have to use http_use_cookies(*off) to work around it. I am using LIBHTTP version 1.32. I am not sure if there is a fix in the latest version. I guess we can put the dollar sign in a database file and read it into the program.



Warmest regards,


Dennis Liu



--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi