Yeah, I kinda figured I was doing something wrong.
The relevant Arduino code is this, cut'n'pasted verbatim from stackoverflow:
client.println ("<form id=\"uploadbanner\" enctype=\"multipart/form-data\" method=\"post\" action=\"#\">");
client.println (" <input id=\"fileupload\" name=\"myfile\" type=\"file\" />");
client.println (" <input type=\"submit\" value=\"submit\" id=\"submit\" />");
client.println ("</form>");
This pops up a file-select window and, when I hit "submit," sends the following:
POST / HTTP/1.1
Host: arduino
Connection: keep-alive
Content-Length: 194
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http: arduino
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryCRB3Oph5C2m7QZq6
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/
537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8
Sec-GPC: 1
Accept-Language: en-GB,en
Referer: http: arduino/
Accept-Encoding: gzip, deflate
GET /favicon.ico HTTP/1.1
Host: arduino
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/
537.36
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8
Sec-GPC: 1
Accept-Language: en-GB,en
Referer: http: arduino/
Accept-Encoding: gzip, deflate
If I change the "post" to a "get," I get:
GET /?myfile=mydata.txt HTTP/1.1
Host: arduino
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8
Sec-GPC: 1
Accept-Language: en-GB,en
Referer: http://arduino/
Accept-Encoding: gzip, deflate
GET /favicon.ico HTTP/1.1
Host: arduino
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8
Sec-GPC: 1
Accept-Language: en-GB,en
Referer: http: arduino/?myfile=mydata.txt
Accept-Encoding: gzip, deflate
(I've had to edit a few lines that looked like links...)
The first line of which at least shows the name of the file I'm after, but in no case, so far as I can tell, am I getting the contents of the file.