Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignoring the response in java class for a http request making from class

Any idea how to make a http call from java class ignoring the response . I am trying to give a trigger/ack by hitting the URL from my java class . but i am not interested if I get the response back or not and want to continue my code flow without waiting for the response.

like image 558
neo Avatar asked Nov 22 '25 12:11

neo


1 Answers

Try closing the input stream (response stream)

However, your approach is not reliable. You could not even guaranty that the trigger has been done.

like image 170
stefan bachert Avatar answered Nov 24 '25 01:11

stefan bachert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!