parse https url too