I’m using the Wizfi210 along with a Arduino. called my "unit"
My unit is set up as a webbserver with Adhoc to the pc.
I can connect to the unit via the pc and browse to it through the browser. So the HTTP-request/response is working just fine.
Now, I need to download a file (a small csv-file in this case) .
So i would like some help with the HTTP-response-header that should be send.
Found several different solutions on the net, but none seemed to work for me. I got close, but not all the way
Here is one of them:
Serial.println("\n\nSending HTTP RESPONSE WITH CSV-file");
Serial.println(“HTTP/1.1 200 OK\r\n”);
Serial.println(“Content-Type: application/CSV”); //text/plain
Serial.println(“content-disposition: attachment; filename=“myfileName.csv””);
// Serial.print(“Content-Type: text/csv”);
// Serial.println(“Connection: close”);
// Serial.println(“Refresh: 5”); // refresh the page automatically every 5 sec
// Serial.println(“Content-Type: text/csv”);
Could you please assist me with the proper HTTP-response?
I know the size of the csv-file before sending.
This is quite urgent, so please help me ASAP.