Note that this can open the door to this bug 
https://code.google.com/p/android/issues/detail?id=29509 which can cause 
https sockets to close when using network data. Quite a big one for my 
project so may have to try bypassing the proxy or reverting to HttpClient...

On Tuesday, 27 November 2012 10:40:28 UTC, Fritjof wrote:
>
> This appears to have solved the problem for me:
>
>
>  if (Build.VERSION.SDK != null && Integer.parseInt(Build.VERSION.SDK) > 
> 13) { 
>
>       urlConnection.setRequestProperty("Connection", "close"); //disables 
> connection reuse
>
> }
>
> On Friday, November 23, 2012 11:34:12 AM UTC+1, b0b wrote:
>>
>>
>>
>> On Friday, 23 November 2012 11:23:45 UTC+1, Ryan Bateman wrote:
>>>
>>> That's not right
>>
>>
>> You are right.  What I said was for DELETE requests. Of course POST 
>> requests have a body. 
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to