iisproxy
iisproxy copied to clipboard
Escaped characters in URI get corrupted (i.e. russian words in query parameters)
Query params (GET method) like
?q=%d0%93%d0%b4%d0%b5+%d1%80%d0%be%d0%b4%d0%b8%d0%bb%d1%81%d1%8f+%d0%9f%d1%83%d1
%82%d0%b8%d0%bd%3f
Will be escaped second time and passed to back-end as:
?q=%25u041a%25u0442%25u043e+%25u043f%25u0435%25u0440%25u0432%25u044b%25u0439+%25
u043f%25u0440%25u0435%25u0437%25u0438%25u0434%25u0435%25u043d%25u0442+%25u0420%2
5u043e%25u0441%25u0441%25u0438%25u0438%3f
Request.RawUrl works fine for me:
public void ProcessRequest(HttpContext context)
{
string remoteUrl = ConfigurationSettings.AppSettings["ProxyUrl"] +
context.Request.RawUrl;
Original issue reported on code.google.com by [email protected] on 27 Sep 2011 at 9:51