Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a total n00b when it comes to networking. I have done some limited networking in Java/Android, though.

Here's what I have done: I have a Raspberry Pi set up as a web server using lighttpd.

Here's the problem: I want to HTTP POST a value (a String or an int or plain text or something) to my home-made web server. Then, I want to be able to, at any time, HTTP GET this value from the server.

How do I accomplish this? What do I need to do on the Raspberry Pi, and what do I need to do in Java (in my Android app that posts and gets the value)?

share|improve this question
what you are asking about is a web application, not the webserver itself, and you will have to write an application to take the post, and to retrieve data for your get. perhaps we should look at what you are trying to do rather than this one element of how you might do it. – Frank Thomas Nov 18 '13 at 21:37
I am trying to send the number of steps from my step counter app to somewhere so that that number can be retrieved from another device. Are there free web apps that will do this? – Eric Cochran Nov 18 '13 at 21:53
You need a webapp for what you described. If you're not looking to learn the basics for that, you could likely enable PUT requests, and just GET what you PUT. You might be better off just setting up an FTP server instead, and uploading/downloading the file as you need. – ernie Nov 18 '13 at 22:05
How do I enable PUT requests? – Eric Cochran Nov 18 '13 at 22:12
Here's that exact question: Enable Put Command on lightTPD on SO: – ernie Nov 20 '13 at 21:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.