Django and request.POST

I spent a lot of time trying to figure out why django removed the ‘+’ character from the POST data retrieved via request.POST.

Still don’t know the reason of this behaviour, but using request.raw_post_data saved my day …

2 Responses to “Django and request.POST”

  1. enlavin
    January 30th, 2009 14:39
    1

    I don’t know if this is your scenario, but if you send + sign unescaped in encoded POST requests the standard says it will be interpreted as an space in the unencoded string. Try to use %2B instead of + sign.

    Bye :)

  2. fabian
    February 5th, 2009 03:09
    2

    poz seguro que es por eso, así que convertiré el texto como sugieres.

    Gracias!