Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: "+" stripped from CGI params

by hawtin (Prior)
on Dec 22, 2007 at 13:56 UTC ( #658650=note: print w/replies, xml ) Need Help??


in reply to "+" stripped from CGI params

I would suspect that this has to do with the different options for the form's enctype when the method is POST. This controls the way the parameters are delivered to CGI, from memory:

  • not-defined => "param1=one+value¶m2=another+val"
  • "text/plain" => "param1=one value param2=another val"
  • "multipart/form-data" => "param1=one value\nparam2=another val\n"

My guess would be that since the default is to replace all spaces with "+" the CGI parameter processing by default does the reverse

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://658650]
help
Chatterbox?
shmem compiles himself into a template
[shmem]: .oO( just to escape The Wheel... )
[shmem]: since that's already done. I'm not!

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-06-25 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (569 votes). Check out past polls.