Skip to main content
Question Protected by TylerH
added 1 character in body; edited title
Source Link
codeforester
  • 41.8k
  • 19
  • 115
  • 149

Get protocol,domain domain, and port from URL

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

Get protocol,domain and port from URL

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

Get protocol, domain, and port from URL

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
deleted 16 characters in body; edited title
Source Link
tshepang
  • 12.3k
  • 24
  • 95
  • 138

javascript: get Get protocol,domain and port from URL

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

for. For example:

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

Thank you

javascript: get protocol,domain and port from URL

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

Thank you

Get protocol,domain and port from URL

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
edited title
Link
Shef
  • 45.4k
  • 15
  • 81
  • 90

javascript: get protocol,domain and porport from URL

Source Link
yelo3
  • 5.9k
  • 6
  • 27
  • 23
Loading