Search found 2 matches

by Miliks
Wed Jun 29, 2022 2:56 pm
Forum: General Discussion and Questions
Topic: add payload to POST request
Replies: 5
Views: 4273

Re: add payload to POST request

someone will come along with a full fledged example, I'm sure. In the meantime, if you won't want to wait. I'd take a cpython example like the one discussed here: https://stackoverflow.com/questions/28670835/python-socket-client-post-parameters besides Content-Length it seems like you have to byte ...
by Miliks
Wed Jun 29, 2022 9:00 am
Forum: General Discussion and Questions
Topic: add payload to POST request
Replies: 5
Views: 4273

add payload to POST request

Hi guys, i have a server with POST e REST services. Using micropython i need to perform POST request. GET is performed and respond correctly using the following format: s.send(b"GET /sensordata/premises HTTP/1.1\r\nHost:XX.XXX.XXX.XXX\r\n" + "Accept: application/json\r\n\r\n") but for the POST looks...