I'm trying to send a jpg image using POST
Until now I was able to read the image byte by byte.
I try to send the image in this way but I don't know if the server receive succesfully the image:
client.connect(host, 80);
client.println("POST "+String(api_page)+" HTTP/1.1");
client.println("Host: " + String(host));
client.println("Content-Type: image/jpeg");
client.println("Content-Transfer-Encoding: binary");
client.print("Content-Length: ");
client.println(length);
client.println();
//now I write the image as a set of byte
while(...) {
client.write(byte_buffer, byte_buffer_length);
}
I've a php server, how can I know if the server has received the image?