I am trying to transmit data out of an embedded Linux device over the wifi connection. I have curl and wget on the device. How would I transmit data out of the device using curl or wget ? Any pointers welcome.
If it is only (key,value) pairs that you want to send then
curl -d key1=value1 -d key2=value2 <URL>
But if it is some file that you want to send then
curl --data-binary @<file path> <URL>
there is a "--post-file" option in wget:
wget --post-file=filetoSend URL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With