|
Jon:
Thank you for reply. I should have been clearer, my issue arrises with a send (POST) of data. I am able to receive data in large sizes, anytime my post is over 64K I receive the error 400.
From: Jon Hopkins <[email protected]>
Date: Thu, 7 Jul 2011 10:13:43 -0400 To: Mark Handzlik <[email protected]> Subject: AW: [MonoTouch] Anyone have a hint on HttpWebRequest and 64K limit? This works for me... HttpWebRequest request = (HttpWebRequest) WebRequest.Create(requestUrl);
request.Method = "GET";
WebResponse response = request.GetResponse();
Stream reader = response.GetResponseStream(); FileStream writer = File.Create(localpath ); byte[] data = new byte[1024]; int length = 0;
while((length = reader.Read(data, 0, data.Length)) > 0) {
writer.Write(data, 0, length); }
writer.Close(); reader.Close();
response.Close(); Jon The information contained in or attached to this electronic transmission constitutes confidential information and may be privileged and exempt from disclosure under applicable law. If you are not the intended recipient, you are on notice that any unauthorized disclosure, copying, distribution or dissemination of this information is strictly prohibited. |
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
