Simple demo(via command)

you are saying that i can use the same code for http???
what are the changes that i will have to do in my code for http
how do i send “1” from my web server.
the get command is for posting data right?!