From: Daniel S. <da...@er...> - 2005-09-26 11:13:39
|
Would this change with RFC1738 ----- snip Thus, only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL. ----- end snip Regards On Monday 26 September 2005 12:35, Rob Schmersel wrote: > Thinus Pollard wrote: > > Hi there > > > > We're sending an http request to yaws. See (1). The request contains a > > string called ussdString. This string is a uuencoded string > > > > ussdString="*116*111*AAEGAGQAABEzAABgNIUgAABRdNAABYcAAAAAAAAAgQ6+8zh0D9iB > >Dr7zOHQP2A==1#" > > > > Yaws captures this data via script (2). > > > > In our logs we get the string as: > > ussdString=\"*116*111*AAEGAGQAABEzAABgNIUgAABWEtAABYcAAAAAAAAAgQ6<space>8 > >zh0D9iBDr7zOHQP2A==1#\" > > > > What's happing is that yaws is dropping the '+' character from our string > > and inserting a space (verified as ascii code 32 (decimal)) in its place. > > <snip some additonal info> > > This is correct behaviour and is due to url encoding, that is making a > string safe to be send in a URL, One of the things that happens is that > a space is translated into a '+' sign. Yaws 'decodes any string and thus > transfers any '+' into a space. > In order to have this working correctly you'll have to URL encode the > string before you send it (the '+' sign will then be transferred into a > %xx, which yaws will correctly decode) > > Regards > /Rob > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your very > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Erlyaws-list mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlyaws-list -- Daniel H Schutte Mobile: +27 84 468 3138 Office: +27 11 675 2643 The more laws and order are made prominent, the more thieves and robbers there will be. -- Lao Tsu |