mail-archives/monodroid/2012-November/012929.html

102 строки
3.9 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:06:39 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] WebRequest unescaping URLs
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=Re%3A%20%5Bmono-android%5D%20%20WebRequest%20unescaping%20URLs&In-Reply-To=%3CEA458FED-9A7B-4844-B2B1-F266D0619571%40gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="012956.html">
<LINK REL="Next" HREF="012930.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] WebRequest unescaping URLs</H1>
<B>Filip Fr&#261;cz</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=Re%3A%20%5Bmono-android%5D%20%20WebRequest%20unescaping%20URLs&In-Reply-To=%3CEA458FED-9A7B-4844-B2B1-F266D0619571%40gmail.com%3E"
TITLE="[mono-android] WebRequest unescaping URLs">filipfracz at gmail.com
</A><BR>
<I>Wed Nov 21 16:59:49 UTC 2012</I>
<P><UL>
<LI>Previous message: <A HREF="012956.html">[mono-android] WebRequest unescaping URLs
</A></li>
<LI>Next message: <A HREF="012930.html">[mono-android] VS2012 Crashing During Debugging?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#12929">[ date ]</a>
<a href="thread.html#12929">[ thread ]</a>
<a href="subject.html#12929">[ subject ]</a>
<a href="author.html#12929">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Resending, since I missed the [mono-android] from the subject
On Nov 21, 2012, at 10:30 AM, Filip Fracz &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">filipfracz at gmail.com</A>&gt; wrote:
&gt;<i> I'm having an issue with URLs being escaped in MonoDroid.
</I>&gt;<i> I would like the Uri class to leave %2F in the URLs (otherwise it's hard to interact with short-lived S3 links).
</I>&gt;<i>
</I>&gt;<i> This SO describes the problem and the answer has a workaround for Microsoft.NET (it does works).
</I>&gt;<i> I tried putting a similar &quot;app.config&quot; file in my Android project, but it does not seem to have any effect.
</I>&gt;<i>
</I>&gt;<i> What can I do? Is there any way of using Android's native HttpClient in my C#?
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> P.S.
</I>&gt;<i> Detailed background info for those interested:
</I>&gt;<i> I'm using a WebClient class to do a GET on this URL: <A HREF="http://fs.debesys.net/fs/common/filip/android_mg_instruments">http://fs.debesys.net/fs/common/filip/android_mg_instruments</A>
</I>&gt;<i> It redirects to a short-lived Amazon S3 URL, which contains %F2.
</I>&gt;<i> Uri class unescapes these to forward slashes, and Amazon issues a 403.
</I>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;<A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20121121/294a6724/attachment.html">http://lists.ximian.com/pipermail/monodroid/attachments/20121121/294a6724/attachment.html</A>&gt;
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="012956.html">[mono-android] WebRequest unescaping URLs
</A></li>
<LI>Next message: <A HREF="012930.html">[mono-android] VS2012 Crashing During Debugging?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#12929">[ date ]</a>
<a href="thread.html#12929">[ thread ]</a>
<a href="subject.html#12929">[ subject ]</a>
<a href="author.html#12929">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>