Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4061

General • Re: Downloading a log file from a RPi Pico

$
0
0
Thanks! wget and curl both seem to access the pico. But they're not seeing or downloading the "logfile.csv" that is saved in the pico's flash memory. Is there any way to access files in the flash memory?

Results of curl and wget:

Code:

[user@optiplex3010 Desktop]$ curl http://192.168.0.36/logfile.csvcurl: (1) Received HTTP/0.9 when not allowed[user@optiplex3010 Desktop]$ wget http://192.168.0.36/logfile.csv--2024-11-23 12:45:19--  http://192.168.0.36/logfile.csvConnecting to 192.168.0.36:80... connected.HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9Length: unspecifiedSaving to: ‘logfile.csv.1’logfile.csv.1           [ <=>                ]   1.07K  --.-KB/s    in 0.003s  2024-11-23 12:45:19 (416 KB/s) - ‘logfile.csv.1’ saved [1098]
...and from the pico end:

Code:

Server... b'GET /logfile.csv HTTP/1.1\r\nHost: 192.168.0.36\r\nUser-Agent: Wget/1.24.5\r\nAccept: */*\r\nAccept-Encoding: identity\r\nConnection: Keep-Alive\r\n\r\n'Server... b'GET /logfile.csv HTTP/1.1\r\nHost: 192.168.0.36\r\nUser-Agent: curl/8.10.1\r\nAccept: */*\r\n\r\n'
wget seems to find my html code in the python code and retrieves it and saves it as "logfile.csv", which is not what I want.

Statistics: Posted by JKJ — Sat Nov 23, 2024 6:59 pm



Viewing all articles
Browse latest Browse all 4061

Trending Articles