Jisson
Jisson

Reputation: 3725

decode urlencoded string, or apache rejects url due to '/' in params

I am developing Mobile application which uses python in its server side(apache server) , I send some parameters to the server,and am sending these parameter after encoding two times ,(other wise apache gives 400 error due to a '/' in the encoded parameter). I came to this solution after reading the article

And my server in turn sends a request to another server using the same parameter, So i want to decode it in to its previous form.

Is there any way in python to decode the encoded parameters in python?

Or whether I move to the other solutions described in the above article.

Upvotes: 1

Views: 4218

Answers (1)

Kimvais
Kimvais

Reputation: 39548

Use unquote() from urllib.parse (python 3.x) or urllib2 (python 2.x)

Upvotes: 5

Related Questions