c# - How to know if a website is correctly working or not? -
You have completed yet to develop a WebAPI.
Now, one client is making the application for the same.
To do this, I had created a WPF client application, for which the user needs to enter the original URI of the service.
This is,
http: // localhost: 65620 / virtual directoryname (not just the original url to the full URL) Now, How to check if the URL is correct or is not using the client application?
1 Edit:
HTTP client can be used : But I'm asking about validating the original URL alone. Any ideas how to do that?
(If I enter the original address in the browser, then it shows the contents of the directory. Then I think the installation is correct (at this time I'm not calling any webpage).
Edit 2:
URL is correct or not : I have to ensure that the service is properly installed in the IIS and it is up And any C lient that is already running can reach its statutes.
Then you have a web API that can not be modified, and the client application will not be modified.
Use the client application to call one of the API methods.
Or create a test application that calls one of the methods of API.
I'm missing something, but definitely there should be a simple GET method in your API which you can call from your testing application which is going to be proven API.
Comments
Post a Comment