encode url

pattryn nginx-forum at nginx.us
Fri Nov 26 12:51:11 MSK 2010


Hi,

I'm writing my first nginx module. The module at some point uses the
"Location" header to redirect to user to a landing page. The redirected
url has many arguments which could potentially contain spaces, slashes
or any other non-alphabetic chars.

Is there a function that'll escape then and convert them to %20, %2f and
so on? 

Thanks.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,153434,153434#msg-153434




More information about the nginx mailing list