You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm new to facil.io
and I'm having a hard time getting a form parameter.
Here's what I'm trying:
FIOBJ post_str = fiobj_str_new("POST", 4);
if( fio_str_iseq(h->method, post_str) ){
printf("-------------------- POST \n");
int pb = http_parse_body(h);
printf("parse body %d\n", pb);
FIOBJ k = fiobj_str_new("name", 4);
int exists = fiobj_hash_haskey(h->params, k);
printf("--------- exists [%d]\n", exists);
FIOBJ name = fiobj_hash_get(h->params, k);
//FIOBJ nval = fiobj_str_new("OOOO", 4);
//printf("eq name value %d\n", fio_str_iseq(name, nval));
//char * name_ptr = fio_str_data( name );
printf("--------- NAME [%.*s]\n", 4, name);
}
Also: Is there any open source project developed with facil.io
that have these code examples like forms, uploads
login, session, cookies, multipart requests, templating, etc,
all in one package?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I'm new to facil.io
and I'm having a hard time getting a form parameter.
Here's what I'm trying:
Also: Is there any open source project developed with facil.io
that have these code examples like forms, uploads
login, session, cookies, multipart requests, templating, etc,
all in one package?
Thanks
The text was updated successfully, but these errors were encountered: