I have the following code that I use to send an email and password to my 
server. It works fine on the simulator but fails on an actual iphone (I 
receive a blank email and password):

try {
    URL url = new URL(*"server address"*);
    link = url.openConnection();
    link.setDoOutput(true);
    link.setDoInput(true);
} catch(URISyntaxException e) {
    Log.p("URL error");
    Log.e(e);
}
// Get buffered output stream
os = link.getOutputStream();
BufferedOutputStream bout = new BufferedOutputStream(os);
// Send email and hashed Password
bout.write((nemail + "\n").getBytes());
pwHash = getHash(nemail + npasswd);
bout.write((pwHash + "\n").getBytes());
bout.flush();

Thanks, Dennis

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/20b76ba3-4b88-4cf1-85af-1adfb3f172b0n%40googlegroups.com.

Reply via email to