Re: parameters getting modified
Hi, Thanks for the input. Its all because of my misunderstanding of how the URL is handled by apache. Apache does not allow multiple slashes in the path portion of the URL. (It seems there are some security underpinnings, which I did not understand). And there seems to be no way to turn it off. My idea was to let someone do, www.xyz.com/post/URL, to take the user to a form preloaded with the URL (so the user can just copy past the url he wants and put it in place of URL in the above link). Since, this is not possible, I have resorted to, www.xyz.com/post/?URL, since in this case URL becomes part of the parameter portion. Thanks, Venkat On Dec 11, 4:06 am, l5x <[EMAIL PROTECTED]> wrote: > If the example from Rajesh isn't working maybe you should do sth like > that: > > /post// ? > > For example: > > /post/http/google.com > > Then join it 'http' + '://' + 'google.com' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: parameters getting modified
If the example from Rajesh isn't working maybe you should do sth like that: /post// ? For example: /post/http/google.com Then join it 'http' + '://' + 'google.com' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: parameters getting modified
Hi Venkat, > i have the following pattern, '^post/(?P.*)', 'post' > and, my url is post/http://google.com > but, I get it as http:/google.com I don't think this is a Django bug. It's likely that your HTTP server (mod_python, FCGI layer, etc.) is "normalizing" those forward slashes well before the request hits Django. You should URL encode that path and see if that works: post/http%3A%2F%2Fgoogle.com -Rajesh D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
parameters getting modified
Hi, hi, i have a problem where in the parameter matched by urls.py gets modified. i have the following pattern, '^post/(?P.*)', 'post' and, my url is post/http://google.com but, I get it as http:/google.com irrespective of the no. if ///, only one / comes out. any ideas? but, the regex seems to be ok. re.findall('^post/(?P.*)', 'post/http://google.com') ['http://google.com'] Regards, Venkat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---