Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Mc52it GPRS POST HTTP

Status
Not open for further replies.

mrt3535

Newbie level 4
Joined
Sep 13, 2012
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
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:
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");
I can not find where the error is. Someone pls help me.
 

I could not do it someone help me. Any idea? Thats my send data :
Code:
string[] SendData = {"POST /ekle.php HTTP/1.0" + "\\" + "r" + "\\" + "n",
                             "Host: www.lastcoingames.com" + "\\" + "r" + "\\" + "n",
                             "User-Agent: HTTPTool/1.0" + "\\" + "r" + "\\" + "n",
                             "Content-Type: application/x-www-form-urlencoded" + "\\" + "r" + "\\" + "n",
                             "Content-Length: 23" + "\\" + "r" + "\\" + "n" + "\\" + "r" + "\\" + "n",
                             "value=3333&submit=10987" + "\\" + "r" + "\\" + "n",
                             "Connection: Close"};
 

Any idea? I still having problem.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top