Getting the protocol from the path instead of the objUrlOptions