HTTP_request: Check if a server cert is valid or not
Refactor HTTPS_request() and OAuth_generate()