Should I use something else instead of sizeof() to determine the correct value?
What did you measure the size of? The shoes of all the students in your dorm?
If you changed the code, you need to post the revised code AND the new output.
Before you do that, however, ask yourself if you REALLY need to send all that data. You send the same set of values every time. Do you REALLY need to send the same string literals EVERY time?