1. Change usage of Tools::strlen to strlen, it wasn't working properly a...

...nd caused bugs in some occasions.

2. Verify curl support ssl and replace schame to http in case it's not.