views:

190

answers:

0

Hi.

I have the following code in CF 3.5, target platform is WinMo6.5 for my HTC HD2:

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(new Uri("http://www.somewebsite.com/"));

req.KeepAlive = false;

HttpWebResponse res = (HttpWebResponse)req.GetResponse(); string content = string.Empty;

Stream dataStream = res.GetResponseStream();

using (var reader = new StreamReader(dataStream, Encoding.Default)) { content = reader.ReadToEnd() + "\n"; }

When I run it on my HTC HD2 while its connected to my computer with Windows Mobile Device Center or when it uses my wireless connection, it works flawlessly.

When I run it with HSDPA, the returned string (content) contains only the string 'oops'...

I have no idea why... Can someone help me out?

Thanks.

related questions