I'm writing a small web API routine using webserver Goahead. What's the API to be used to get the Http header information. Please help.
Please be specific to your question. I am using GoAhead for my Embedded Web Server.
You need to define the form like below to handle the subit methods (Get/POST)
void formSetLoopCode (webs_t wp, char_t *path, char_t *query)
opt = gatoi (websGetVar (wp, "opt", "1"));
port = gatoi (websGetVar (wp, "port", "1"));
The header information is converted into variables that are retrieved using websGetVar.