[mono-android] System.Net.WebClient.UploadFileAsync Problem
subsembly
a.selle at subsembly.com
Thu Jan 19 17:07:40 UTC 2012
Got me :-)
To my surprise your code does indeed add the MIME header stuff, even on the
.NET Framework for Windows. So I went back to my real application code to
check this out. I found the difference is that we are using "PUT" and not
"POST" as the HTTP method.
If you change your line to
wc.UploadFileAsync (new Uri ("http://127.0.0.1:9000/"), "PUT",
"uploadfile.cs", evt);
then .NET for Windows does no longer add the MIME headers. Whereas, Mono
still does.
Cheers,
Andreas
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-Net-WebClient-UploadFileAsync-Problem-tp5157961p5158294.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list