I am running an Apache server on local host. I can create a Form in HTML and Post to it from a web page button but I cannot figure out how to Post to the form from my Ethernet Arduino. There doesn't seem to be a way to invoke the submit function needed by the server.

Posting can be done using HTML post commands, maybe it suports webdav? not sure for apachebut basicly think of it like this if you can press a button on a web page, and that page can retrieve something for you, you can send data to it. you might need to dive into perl on how to achieve this.

I can format a POST command on my Ethernet Arduino and it does wake up my little PHP script on my Apache server but the $_POST Variable is empty. I think its because I have not generated a 'Submit' command the way a submit button does from a web page.

I can format a POST command on my Ethernet Arduino and it does wake up my little PHP script on my Apache server but the $_POST Variable is empty. I think its because I have not generated a 'Submit' command the way a submit button does from a web page.

Any other ideas?

What request are you actually generating? You could either log it within the webserver, or use WireShark or similar, or print it out of the Arduino. Are you setting the Content-Type and Content-Length headers correctly? Have you tried simply URL encoding the request parameters?

I only provide help via the forum - please do not contact me for private consultancy.

client.println("POST hxxp://yourdomain.com/SMSSite/XMLInterface/Postxml.aspx HTTP/1.0");// add a header indicating you have content-data to send. If you set this too low, the server won't see it. If it is too high, the server may wait, or report an error.client.print("content-length: ");client.println(strlen(big_string));// tell the server you are done with the header.client.println();// send the posted data.client.print(big_string);

Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

client.println("POST /arduino.php HTTP/1.0"); client.println("Content-Type: application/x-www-form-urlencoded"); // the Content-Length must be set to the number of characters after the double CR/LF client.println("Content-Length: 9\r\n"); client.print("testone=1");

SurferTim and all. Thank you very much. This does work.I have spent several days searching for this answer and you were the only one that came up with the answer.My lack of knowledge centers around the Headers I expect so I'll go learn about them.The one thing that you could clear up for me is what you mean by:// the Content-Length must be set to the number of characters after the double CR/LF