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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -