Hi Dennis,
Sorry about that! That was a silly mistake I made.
I've updated the beta programs on my web site, can you try them one more time to be sure that all is well?
thank you!
On 3/9/2018 6:08 PM, Dennis Liu wrote:
Hi Scott, it almost works. There are 3 '$' signs ($Version, $Path, and $Domain) in the procedure and all need to be replaced. I changed all of them following your logic and recompiled it. Then, it works.
Have a nice weekend.
Dennis
On Fri, Mar 9, 2018 at 12:43 PM, Scott Klement <sk@xxxxxxxxxxxxxxxx <mailto:sk@xxxxxxxxxxxxxxxx>> wrote:
Hi Dennis,
I put an updated copy of HTTPAPI for you to test, here:
http://www.scottklement.com/httpapi/beta/
<http://www.scottklement.com/httpapi/beta/ >
It can be installed using the same instructions that are on the
main HTTPAPI page, which is http://www.scottklement.com/httpapi
<http://www.scottklement.com/httpapi > (just make sure you download
the files from the beta link instead)
Let me know if this works for you. If it does, I'll make it
available to everyone else.
thanks!
-SK
On 3/6/2018 5:49 PM, Dennis Liu wrote:
Scott, thank you for your reply. I am glad to test it. Just
let me know.
Best regards,
Dennis Liu
Sent from my iPhone
On Mar 6, 2018, at 11:17 AM, Scott Klement
<sk@xxxxxxxxxxxxxxxx <mailto:sk@xxxxxxxxxxxxxxxx>> wrote:
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
<mailto:Ftpapi@lists.scottklement.com >
http://scottklement.com/mailman/listinfo/ftpapi
<http://scottklement.com/mailman/listinfo/ftpapi >
-- _______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx <mailto:Ftpapi@lists.scottklement.com >
http://scottklement.com/mailman/listinfo/ftpapi
<http://scottklement.com/mailman/listinfo/ftpapi >
--
Best regards,
Dennis**刘 春
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi