| Issue 30: | OutputStream acquired from HttpConnection doesn't write anything |
1 of 66
Next ›
|
| 5 people starred this issue and may be notified of changes. | Back to list |
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
Jun 2, 2010
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? |