Test and validate sumologic url without posting to endpoint or by posting empty data.
Hi,
We accept sumo logic endpoint url as input from customers which will look like this :
We have requirement to test the connection so that customers don't come back saying the data is not received at endpoint because of the wrong connector url entered .I'm trying to create a post call with empty data using closeableHttpClient and check for the error codes. The check works pretty fine except for scenario where he enters only https://endpoint2.collection.us2.sumologic.com which returns us 'Tweep' in browser and 200 ok in the post call . This will be problematic as we validated the connector url to true but if user starts sending data to endpoint(https://endpoint2.collection.us2.sumologic.com) he will not be receiving it . Is there any way to validate the url that he enters ?
Please sign in to leave a comment.
Comments
0 comments