HTTP server request

10 Oct 2012

Hi all,

I have a webserver on the mbed up and running from the example code found on this site.

In my index.htm there is a javascript text form with a submit button. I want to put some text into the text field and "POST" it onto the webserver.

My problem is now how do I receive the "POST" data from the .htm page and show it somehow(like making a .txt file in the mbed files root).

Any help or suggestions would be greatly appreciated.

Regard, Rik

11 Oct 2012

Have you tried writing a custom handler?

http://mbed.org/cookbook/HTTP-Server-Custom-Handler

Looks pretty powerful

Ashley

12 Nov 2012

Hi Ashley,

I have tried to make a custom HTTP handler and it works really great.

Thank you!