diwesh87
Newbie level 1
am trying to catch an HTTP request and store it in an array using C . How can I possibly do this ?
The request I get from is of the following form :
POST /box/update HTTP/1.1
Accept : application/json
Content-Type : application/x-www-form-urlencoded
host:121.158.41.104:1338
content-length : 83
Connection : close
serial=134&pin=134&poweState=true&startState=true&temperature=11&macAdress=113
My program requires to store each variable and value for further use.I have been able to read this request and output on my console , but further from that I am stuck.
The request I get from is of the following form :
POST /box/update HTTP/1.1
Accept : application/json
Content-Type : application/x-www-form-urlencoded
host:121.158.41.104:1338
content-length : 83
Connection : close
serial=134&pin=134&poweState=true&startState=true&temperature=11&macAdress=113
My program requires to store each variable and value for further use.I have been able to read this request and output on my console , but further from that I am stuck.