The headers I am using look like below with the last print line being my "data." I am using the WiFlyHQ library. Not sure what I am doing wrong. Probably something stupid and obvious like always. Any help would be appreciated.
/* Send the request */
wifly.println("POST /API/testapi.ashx HTTP/1.1");
wifly.println("Host: mywebsite.com");
wifly.println("Content-Length: 40");
wifly.println("X-Target-URI: http://sharesay.us");
wifly.println("Content-Type: application/x-www-form-urlencoded; charset=UTF-8");
wifly.println("Connection: Keep-Alive");
wifly.println("key=123456");
} else {
Serial.println("Failed to connect");