[solved]Problem Sending XML file SIM900

Hi,

I’m using a gprs shield SIM900 to transfer a large xml file to my server . I’d tryed sending small xml files and it works. My problem is when I want to send a big file to my server (in a HTTP POST request as text/xml) , the Arduino only sends only the final of the message. I suppose that it’s a problem of the serial buffer that override the characters.

I have to say I’m using AT command .

My code is like :

String xml = "data…data10 ";

// first of all i get a tcp conection ,wait to get “>” character, clean the buffer

Serial2.println(xml).

When i see the request in my server I only receive:
data10

Solution : send each part in one serial println