Add ability to do raw data POST
Opened this issue · 3 comments
from discord thread:
curl --location 'http://192.168.2.69’ \
--header 'Content-Type: application/json' \
--data-raw '{
“Namne: “Paulo “Garcia,
“Computer”: “Atari 800
}'
Hey @tschak909 , anyway I can help with this? I haven't look too deeply into the code, but maybe if you point me out in the right direction, I might be able to help with this issue.
Cheers
This should give you a trail to show how commands wind up at the network device, and the protocol adapter:
https://github.com/FujiNetWIFI/fujinet-firmware/blob/master/src/main.cpp#L502
https://github.com/FujiNetWIFI/fujinet-firmware/blob/master/lib/bus/sio/sio.cpp#L402
https://github.com/FujiNetWIFI/fujinet-firmware/blob/master/lib/device/sio/network.cpp#L859
https://github.com/FujiNetWIFI/fujinet-firmware/blob/master/lib/device/sio/network.cpp#L645
https://github.com/FujiNetWIFI/fujinet-firmware/blob/master/lib/network-protocol/HTTP.cpp#L78
Hopefully this helps.
We can answer questions as you have them, in the discord: https://discord.gg/2Ce9guX :)
-Thom
Perfect, thanks. Let's see if I can un-rust my C :)