fixed PUT/POST android 2.2 compatiblity