P
Peter Judge
Guest
This is a AVM bug in the URL encode code (I logged it as PSC00333253 - hex-encode() acts like it returns longchar , if you want to add your name to it). Basically the fix is to change the OpenEdge.Net.URI class at around line 434 to /* Replace character with %hh hexidecimal triplet */ substring (pcString, iLoop, 1 , "RAW" :U) = substitute ( '%&1' , hex-encode (rChar)). instead of substring (pcString, iLoop, 1 , "RAW" :U) = '%' + hex-encode (rChar). -- peter From: tbergman [mailto:bounce-tbergman@community.progress.com] Sent: Friday, 29 May, 2015 17:21 To: TU.OE.Development@community.progress.com Subject: [Technical Users - OE Development] OpenEdge.Net - Possible bug? OpenEdge.Net - Possible bug? Thread created by tbergman I've been checking out the classes provided with 11.5 SP1 for HTTP requests. I seem to be stuck with an off error when trying to urlencode a string. Now I'm not sure I'm doing this right but when I execute the code below, I get the error "Only "Character" is a valid type option for a LONGCHAR variable (11673). What am I doing wrong? USING OpenEdge.Net.*. def var address as char. Address = "Some Test Address". Address = URI:Encode(Address, UriEncodingTypeEnum:Query) . MESSAGE Address VIEW-AS ALERT-BOX. Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...