To post data to a URL, let's say (http://918.104.22.168:9999
), does the url need to be concatenated with any addtional syntax or it is as simple as
opening the connection, setting doOutput to true, and then creating an outputStream
and then writing to it?
Do I need to flush the outputStream too?