C http server get data array -
i trying set simple webserver in c. server reads request char
, example request:
get /?var1=val1&var2=val2 http/1.1
how can format char
can retreive values array?
something in format:
const char *requestdata[2][80]; // code filling requestdata[][] url parameter values // requestdata[0][0] -> val1 requestdata[1][0] -> val2
i have tried things while loops combined strcmp()
, these attempts seem inefficient, proper way of doing this?
Comments
Post a Comment