1. Add ssl logic for post service.
2. Change to get regcode from subject rather than mime header.