java url connection, wait for data being sent through the outputstream
- by Mateu
I'm writting a java class that tests uploading speed connection to a server. I want to check how many data can be send in 5 seconds.
I've written a class which creates a URL, creates a connection, and sends data trough the outPutStream. There is a loop where I writte data to the stream for 5 seconds. However I'm not able to see when data has been…