[mono-android] WebRequest unescaping URLs
Filip Frącz
filipfracz at gmail.com
Wed Nov 21 16:59:49 UTC 2012
Resending, since I missed the [mono-android] from the subject
On Nov 21, 2012, at 10:30 AM, Filip Fracz <filipfracz at gmail.com> wrote:
> I'm having an issue with URLs being escaped in MonoDroid.
> I would like the Uri class to leave %2F in the URLs (otherwise it's hard to interact with short-lived S3 links).
>
> This SO describes the problem and the answer has a workaround for Microsoft.NET (it does works).
> I tried putting a similar "app.config" file in my Android project, but it does not seem to have any effect.
>
> What can I do? Is there any way of using Android's native HttpClient in my C#?
>
>
>
> P.S.
> Detailed background info for those interested:
> I'm using a WebClient class to do a GET on this URL: http://fs.debesys.net/fs/common/filip/android_mg_instruments
> It redirects to a short-lived Amazon S3 URL, which contains %F2.
> Uri class unescapes these to forward slashes, and Amazon issues a 403.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20121121/294a6724/attachment.html>
More information about the Monodroid
mailing list