I use code Request.QueryString[“u”] to read passed URL to my web application. Everything works fine if passed url do not has parameters but for example if such url is submitted
the Request.QueryString[“u”] return
http://www.submitedurl.com/top_sellers_pdf.php?GoodThru=7-21-2011
and comments=This+is+a+test+for+PDF is ignored.
I understand why this happens no need to explain :), but how this could be solved?
One solution I think would be to surround parameter with quotes. Like this
http://mywebapp:80/submit.aspx?u=“http://www.submitedurl.com/top_sellers_pdf.php?GoodThru=7-21-2011&comments=This+is+a+test+for+PDF”
What other solution could be?
When you build your querystring, use: