Changed CUrl to handle https:// requests properly