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

[Ftpapi] Problem with CCSID of encoded URL parameters



Hi,

I faced a problem with the CCSID of encoded of URL parameters, when the remote and local POST CCSID matches the remote POST CCSID. In this case the URL parameters are not translated to the CCSID of the protocol data before they are encoded.

The problem seems to be the 'binaryData' switch of module CCSIDR4. That switch is set to *ON in HTTP_SetCCSIDs() when 'pePostRem' equals 'pePostLoc':

     c                   eval      BinaryData = *off
     c                   if        pePostRem = pePostLoc
     c                   eval      BinaryData = *on
     c                   endif

Later on http_url_encoder_addvar_long() calls http_xlatedyn() to translate the URL parameter to the remote CCSID. The problem is that http_xlatedyn() does not translate the input data when 'binaryData' is set to *ON.

From what I understand, http_xlatedyn() is primarily used for translating POST data and not protocol data. Could that be the problem?

Best Regards,

Thomas.
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender.

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