By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,445 Members | 1,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,445 IT Pros & Developers. It's quick & easy.

Client and Server basic HTTP commands help needed

P: 7
Hi everyone,

i am an undergrad in physics.my thesis is about GPRS.i have a wireless module that sets up a connection to the internet. when i connect to the web server it can communicate using http protocols.my problem is i have no back ground on http protocols(GET,POST)..can anyone give me a hand regarding this protocols? a client POST and how the server handles this POST by the client would be helpful.can someone guide me? all i need is to set up a webserver that has a single
db table with about ten entities. and the value i pass from the client is stored to the table.i dont know how to accomplish this using just post method or get method.hope someone can help me
Mar 23 '07 #1
Share this Question
Share on Google+
2 Replies


drhowarddrfine
Expert 5K+
P: 7,435
GET should be used when you are querying a server while POST is used to post data to a server. POST data is sent after the HTTP headers and looks like this:
item1=data1&item2=data2&item3=data3

So a full HTTP header would look like this:
HTTP /1.1 POST
Content-Type=application/x-www-form-urlencoded
Content-Length=46 (number of characters)
POSTDATA=item1=data1&item2=data2&item3=data3

The actual RFC spec is here.

And after all that, I think you said you already post data so you are wondering how to handle the data once it gets to the server? If so, you need a programming language server side to handle that and you would need to determine which language you will use and ask on that board. What you are looking for is CGI programming.
Mar 23 '07 #2

P: 7
sorry for getting back so late.we have a break at our school.thank you. it gave me a better idea.i will read on cgi.thank you very much.
Apr 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.