I'm using a GET method to send data records to a webserver (recorded in a database). I would like to use POST method to send all recods together
(ex.: record1-> book1,author1,publish1
record2-> book2,author2,publish2
....)(get method can send only 1 record at time, can't it?)
I suppose i must use a "while" that read each record and send it with

out.write(record.getBytes(),0,record.length());

(in this way i have n out.write)
Is it correct?
The length i write in

conn.setRequestProperty("Content-Length",Integer.toString(line.length()));

must be the sum of all records?

Thanks
Tosi