简体   繁体   中英

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.

Try closing the input stream (response stream)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM