Simple HTTP POST to Wifi Thermostat. HELP NEEDED

The server 405 error is telling you it doesn't like POST operations but would be happy to receive a GET operation from the Arduino and respond to it like it responds to the browser GET.

For starters, change POST to GET here and see if it helps:

    sprintf(outBuf,"POST %s HTTP/1.1",page);

-br

Great thanks I will try it first in the morning

Hello Have just tried to change to your suggestion, it also do not work. =( =( =(

Starting ethernet...192.168.10.150
Ready
connecting...connected
HTTP/1.1 400 Bad Request
Date: Tue, 19 Feb 2013 07:22:27 GMT
Server: Apache/2.2.22 (Ubuntu)
Content-Length: 730
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8


    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html>
        <head>
            <title>Error: 400 Bad Request</title>
            <style type="text/css">
              html {background-color: #eee; font-family: sans;}
              body {background-color: #fff; border: 1px solid #ddd;
                    padding: 15px; margin: 15px;}
              pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
            </style>
        </head>
        <body>
            <h1>Error: 400 Bad Request</h1>
            <p>Sorry, the requested URL <tt>&#039;http://xxxx.yyyyyyy.dk/invput&#039;</tt>
               caused an error:</p>
            <pre>Invalid format string</pre>
        </body>
    </html>

disconnecting.
Pass 1

else any Ider :~ :~ :~

The reason I said "for starters" is that there is more to think through and re-code. :wink:

The code currently sends data in the post body. That doesn't work for GET requests, which is why you see the complaint about a malformed request. The data has to be part of the url that is sent to the server after GET (where currently just the page is sent).

Read up on HTTP GET requests and you'll see the proper format to send.

Happy debugging...

-br

Yes of course.

I will then try.
I'm not sure I fully understand it all but I'll try. :disappointed_relieved: