Want to send some data to a web-server using GPRS module.

I am trying to use GSM.h library from this http://arduino.cc/en/Tutorial/GSMExamplesWebClient.Well it is clearly undertood that this code will display the HTML content of arduino.cc on the serial terminal.

Now it is used through "GET"(i am totally new to GET and POST terms), what if i want to send some sensor data to the server?What should i do then.I would be thankfull if somebody can guide me.Is it will be simply like this

if (client.connect(server, port))
  {
    Serial.println("connected");
    client.print("POST");
    client.print(path);
    client.print(data);
    client.println(" HTTP/1.0");
    client.println();
  }

where

char server[] = "xyz.com";
char path[] = "/abc/pqr";
int port = 8080;

data will be ;

data[100]= sensordata;

and sensordata will be the reading of the sensor attached to the analog pin 0 of arduino UNO?

Need help and what we can do for the security of the data being send.

data will be

No, it won't. There isn't a type involved in that statement. Nor, is the array size well defined.

    client.print("POST");
    client.print(path);
    client.print(data);

No spaces?

Post data is separated from the POST directive by a carriage return/line feed.

what we can do for the security of the data being send.

Send armed guards with it. What kind of security do you (think you) need?

Well it was a wrong question to be asked regarding data security.

With respect to sending data to the the server, i think we simply need to push data over serial.Am i right?

With respect to sending data to the the server, i think we simply need to push data over serial.Am i right?

No. The serial port is one way of getting data out of the Arduino. The ethernet shield is another way. The server.print() and client.print() methods are how to get data to clients or servers.

But, it isn't just a matter of pushing data. The data MUST be in the format that the other end of the connection expects. Most servers don't understand "POSTpath", but they DO understand "POST path".