mrt3535
Newbie level 4
Hi everbody.
I working on send data to my php codes for a several day. I using cinterion mc52it gprs modem. I was look this thread : https://www.edaboard.com/threads/126547/
I can connect to my web site. But i cant send data to php codes. Which method should I choose for send data(polling? urcs?) And there is my codes:
I can not find where the error is. Someone pls help me.
I working on send data to my php codes for a several day. I using cinterion mc52it gprs modem. I was look this thread : https://www.edaboard.com/threads/126547/
I can connect to my web site. But i cant send data to php codes. Which method should I choose for send data(polling? urcs?) And there is my codes:
Code:
public void WriteLineToGPRS(string text)
{
serialPort1.Write(text + (Char)13);
}
sendmessage etc..
string NewLine = "^m^j";
WriteLineToGPRS("POST /ekle.php HTTP/1.1" + NewLine);
WriteLineToGPRS("Host: www.lastcoingames.com" + NewLine);
WriteLineToGPRS("Content-Type: application/x-www-form-urlencoded" + NewLine);
WriteLineToGPRS("Content-Length: 23" + NewLine + NewLine);
WriteLineToGPRS("value=3333&submit=10987" + "^z");