typedef struct Webfs Webfs; struct Webfs { int conn; int ctlfd; int bodyfd; char url[1024+1]; char useragent[512]; char method[32]; char *postbody; int npostbody; }; extern char *mntwebfs; Webfs *webfs(char *url, ...); int webfshdr(Webfs *w, char *key, char *value); int webfsget(Webfs *w, char *buf, int len); int webfspost(Webfs *w, char *body, char *buf, int len); void webfsfree(Webfs *w);