this one has been killing me for a couple of days. I'm using a HttpConnection to access a REST server and need to set cookies on a GET method. I'm trying this using connection.setRequastMethod("Set-Cookie","cookie_data") and I just can't get it to work.
Cracked it - it was an issue with the way in which the server was behaving.
This server was of great use: