Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

loosing "+" from cgi input

 [1/5] from: sags::apollo::lv at: 25-Apr-2005 17:13


Hi, Rebolers! How to get the string variable, that begins with "+" from cgi input? f.ex. cgi query => ?phoneNo=+3711234567 frmdata: construct/with decode-cgi cgistr context [ phoneNo: date: month: none ] probe frmdata phoneNo: " 3711234567" brgds Janeks

 [2/5] from: SQLAB:gmx at: 25-Apr-2005 16:31


Hi Janek just a simple example could be: parse/all "?phoneNo=+3711234567" "+" == ["?phoneNo=" "3711234567"] there are many more ways. look at http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlQDWC AR [sags--apollo--lv] wrote:

 [3/5] from: volker:nitsch::gmail at: 25-Apr-2005 16:41


did you really get that? "+" is a special char for space in a query. probe decode-cgi "arg=Hello+world" == [arg: "Hello world"] On 4/25/05, [sags--apollo--lv] <[sags--apollo--lv]> wrote:
> Hi, Rebolers! > How to get the string variable, that begins with "+" from cgi
<<quoted lines omitted: 11>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- -Volker Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem. David Wheeler

 [4/5] from: hallvard:ystad:oops-as:no at: 25-Apr-2005 22:41


Dixit [sags--apollo--lv] (16.13 25.04.2005):
>Hi, Rebolers! > >How to get the string variable, that begins with "+" from cgi >input? > >f.ex. >cgi query => ?phoneNo=+3711234567
If this was meant to be a plus when the CGI is decoded, the plus sign should have been CGI encoded itself: cgi query => ?phoneNo=%2B3711234567 When decoding CGI %2B yields '+' + yields ' ' (a space) HY

 [5/5] from: sags::apollo::lv at: 26-Apr-2005 0:13


Thanks! Janeks, Googling for cgi queries encoding for special chars. On 25 Apr 2005 at 22:41, Hallvard Ystad wrote:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted