Small command line application for getting domain from uri, it also checks the protocol such as:
- http
- https
The exe file is located in the bin directory, copy the full path of this folder to the PATH variable on your system:
PATH=C:\User\Username\Directory\bin;
Note:Make sure to replace user, username and directory to your own names.
Now your setup and ready to use the app. Open up your command line and type the following:
c:\user\username\dir\bin> getdomain http://www.unity3d.com
Note:Make sure to replace user, username and dir to your own names.
Press enter, the result should be the following:
c:\user\username\dir\bin> getdomain http://www.unity3d.com
This protocol is standard
Domain: www.unity3d.com
The line "This protocol is standard" shows because http is the standard protocol. The next line "www.unity3d.com" is the domain name in the uri.
Now do the same again but this time use the website:
https://github.com
Once the changes were made, press enter. The result should be the following:
This protocol is secure
Domain: github.com
Endpoints parser, retrieves the endpoints from the given uri (/endpoint/endpoint2/).
For this example we will use the instagram api endpoints, in the command line type the following:
c:\user\username\dir\bin> getdomain https://api.instagram.com/v1/media/popular
Note:Make sure to replace user, username and directory to your own names.
Press enter, the result should be the following:
c:\user\username\dir\bin> getdomain https://api.instagram.com/v1/media/popular
This protocol is secure
Domain: api.instagram.com
Endpoint: v1
Endpoint: media
Endpoint: popular
The program now finds the endpoints in the uri.