> line=POST / HTTP/1.1 > line=Content-Length: 23 No, you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0
if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown which you did not see because the catch statement is empty. Add a Log.i there and you will see. You modified the original code where the loops ends at the first empty line. Take the original code again en check for the Content-Length line. Parse out the value for contentlength; After the loop add following code if ( contentlength > 0 ) { char [] buffer = new char[contentlength]; int nread = in.read (buffer, 0, contentlength); String Parameters = new String( buffer); // well you should check if nread equals contentlength } > I am wondering where the HTTP POST data is? That just follows the empty line. But as this post data is not terminated with a newline character in.readLine() cannot be used. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en