Posting data to a server securely via http

Ahh okay, I see.

The only last issue that I see is that I can restart the arduino which would reset the message ID from the beginning. What method would you employ to inform the server (Bob) that the message arduino has restarted from the beginning again and should wipe all previous sent messages. Or in fact tell the device to continue where it left off?