我正在尝试通过 wifi 连接从嵌入式 Linux 设备传输数据。我在设备上有 curl 和 wget。我将如何使用 curl 或 wget 从设备传输数据?欢迎任何指点。
最佳答案
如果您只想发送 (key,value) 对
curl -d key1=value1 -d key2=value2 <URL>
但是如果你要发送的是某个文件
curl --data-binary @<file path> <URL>
关于linux - 如何从 Linux 命令行使用 curl 发送数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6865146/