perl .. param problem ...

Status
Not open for further replies.

sridhar8310

Broken In
heya!!! I am trying to pass a parameter by the value 7_+series to a cgi script. What happens is, when I try getting this value by using $co->param() function, it returns me 7_series as of required 7_+series ... isn't it strange ?? I am pretty sure that there was no problem of character escaping issues 'cos the server logs show me a http request with that same attribute value .. can someone help me out plz ....

thanks,
sridhar
 

mod-the-pc

Back to School Mr. Bean !
As per RFC 1738: Uniform Resource Locators (URL) specification, + is a special character and it should be encoded when its not intended for its original use. Try 7_%2Bseries instead
 
OP
S

sridhar8310

Broken In
hey thanks man!! that's indeed true as I just check it. However, isn't the scape function in js supposed to the job of converting the characters like space and so on in the params to % characters ... somehow it doesn't do this thingy for +. That was the main reason I was confused ...
 
Status
Not open for further replies.
Top Bottom