It's no different from sending text data over HTTP -- you just have a different URL that has some security/certificate stuff that happens before you send your data. It's all transparent to your code.
I would try and simplify things to find why you are unable to send over HTTPS. Perhaps just send a "hello" string over the connection first. If that doesn't work, you probably aren't really connecting, and I would troubleshoot that.
Chip H.