Ignoring response in java class for http request from class

Any idea how to make an http call from a java class, ignoring the response. I am trying to give a / ack trigger by clicking a url from my java class. but I am not interested if I will return the answer or not, and want to continue the flow of code without waiting for the answer.

+3


source to share


1 answer


Try to close the input stream (response stream)



However, your approach is not reliable. You couldn't even guarantee that the trigger was executed.

+1


source







All Articles