I need to extract the full protocol, domain, and port from a given URL. For example:

https://localhost:8181/ContactUs-1.0/contact?lang=it&report_type=consumer
>>>
https://localhost:8181

19 Answers
19

Leave a Reply

Your email address will not be published. Required fields are marked *