Can anyone help with this? i have tested more and its definitely related to setting any pins to high while inside an IF statement or a switch/case statement.
I get a HTTP 400 error if the code is compiled with a digitalwrite as mentioned above. i have tried this with different UNO boards and Relays and i am testing without a relay attached. only the Ethernet shield 2.