title: Java listening for http messages
body: <p>I have a java program that can ask client programs questions. I would like to add functionality by embedding the questions I might ask into a hyperlink so that they can be asked by clicking on that link (i.e. main use in powerpoint slides). </p>
  
  <p>The generated link might look something like this: "http://localhost:port/questiondata/"
  The receiving program receives the link, decrypts the question data to post the question.</p>
  
  <p>Could I make it so that my program on localhost listening on the port could detect when that link is pressed/sent?
  There doesn't need to be any 2 way communication and it would always be asked on localhost, can I do that simply using java sockets listening on the port, or would i need to set up some form of webserver as a median.</p>
  
  <p>I know very limited stuff about how http works, and I know tcp sockets need to be 2-way. Can anyone give me a recommendation of how I could possibly do this?</p>