I'm doing a Http POST, the code passes through Connector.open, openOutputStream, and write calls successfully, but it gives an exception in openInputStream. The message is Status = -33. Can anybody tell me what this status means? Am i missing something?

hc = (HttpConnection) Connector.open (url);

hc.setRequestMethod (HttpConnection.POST);
hc.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded"
hc.setRequestProperty ("Content-Length", String.valueOf (buf.length));
hc.setRequestProperty ("Connection", "close"

os = hc.openOutputStream ();
os.write (buf);
os.flush ();

is = hc.openInputStream ();

Thanks,
Sameer