im sending a string to java server in ubuntu system(which has public static ip address)using httppost method in arduino code like
numdata=inet.httpPOST("183.82.107.32",7777,"/","Hello",result,50);
i used hardware arduino mega 2560 and gsm module sim800A.....
the output pic is attached below....no error coming...this client is connected to that server but sending data is not receiving by the server
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "inetGSM.h"
//#include "sms.h"
//#include "call.h"
//To change pins for Software Serial, use the two lines in GSM.cpp.
//GSM Shield for Arduino
//www.open-electronics.org
//this code is based on the example of Arduino Labs.
//Simple sketch to start a connection as client.
InetGSM inet;
//CallGSM call;
//SMSGSM sms;
char msg[50],result[50];
int numdata;
char inSerial[50];
int i=0;
boolean started=false;
void setup()
{
Serial.begin(9600);
Serial.println("GSM Shield testing.");
if (gsm.begin(9600)){
Serial.println("\nstatus=READY");
started=true;
}
else Serial.println("\nstatus=IDLE");
}
void loop()
{
if(started){
if(inet.attachGPRS("internet.wind","",""))
Serial.println("status=ATTACHED");
else
Serial.println("status=ERROR");
if(inet.httpPOST("183.82.107.32",6666,"/","123",result,50)){
Serial.println("Data sent to server succesfully!");
}
else{
Serial.println("Failed to send data to the server");
}
}
};