Skip to content
Advertisement

Tag: post

Sending Java POST request without calling getInputStream()

I would like to send a POST request in Java. At the moment, I do it like this: I do not understand why I have to call con.getInputStream() in order to actually send the request. If I do not call it, the request is not sent. Is there a problem using PrintStream? It should not matter if I take a

Advertisement