Issue 30: OutputStream acquired from HttpConnection doesn't write anything
Status:  Accepted
Owner:
Project Member Reported by bar...@gmail.com, Feb 22, 2010
I have tried writing data using the output stream acquired from
HttpConnection. The code is shown below.

               HttpConnection
conn=(HttpConnection)Connector.open(myurl);
               conn.setRequestMethod(HttpConnection.POST);
               conn.setRequestProperty("Content-Type", "application/octet-
stream");
               OutputStream os=conn.openOutputStream();
               DataOutputStream dos=new DataOutputStream(os);
               dos.writeUTF("This is my test");
               dos.flush();
               dos.close();
               os.close();

The problem I have is that this is sending nothing. I cant receive
anything from the other side.
Feb 22, 2010
Project Member #1 bar...@gmail.com
Only GET works.
Jun 2, 2010
Project Member #2 bar...@gmail.com
I need some information which platform versions are affected. My testing showed that
on Android 1.5 and 1.6 works fine but problem is with Android 2.0+. Can anyone
confirm my findings?