Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL hit from JAVA class  RSS feed

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Thanks in advance.
I want to hit one URL from a JAVA application.


It is not executing after "Hello2".
I just want to hit that URL I dont want any output back and if I remove the code after "System.out.println("Hello2")" the URL is not hitting,

Please help me what to do

Regards,
Sree
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to read the output from the URL. If you don't, you are breaking the HTTP protocol and the server just throws your request away.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!