add --secure flag to indicate proxy can support https requests

When --secure is set, all urls will be sent back with https so use will
use secure proxy.