Changeset 15340
- Timestamp:
- 04/21/12 17:50:01 (11 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/doc/htmlapi.txt
r15338 r15340 6 6 /*****************************************************/ 7 7 8 use query?param¶m&... for html output 9 use queryraw?param¶m&... for raw-struct output 10 8 11 query: sendrc 9 12 raw: nothing -
titan/titan/httpd.h
r15338 r15340 137 137 } 138 138 139 void checkquery(int* connfd, char* query, int auth )139 void checkquery(int* connfd, char* query, int auth, int fmt) 140 140 { 141 141 char* buf = NULL, *header = NULL, *param = NULL; 142 142 char* ext = NULL, *mime = NULL; 143 int buflen = 0, onlyheader = 0, code = 200 , fmt = 0;143 int buflen = 0, onlyheader = 0, code = 200; 144 144 145 145 //create param … … 380 380 } 381 381 382 //queryraw 383 if(ostrcmp(filename, "/queryraw") == 0 && query != NULL) 384 { 385 checkquery(connfd, query, auth, 1); 386 free(buf); buf = NULL; 387 free(filename); filename = NULL; 388 tmpstr = NULL; 389 return; 390 } 391 382 392 //query 383 393 if(ostrcmp(filename, "/query") == 0 && query != NULL) 384 394 { 385 checkquery(connfd, query, auth );395 checkquery(connfd, query, auth, 0); 386 396 free(buf); buf = NULL; 387 397 free(filename); filename = NULL;
Note: See TracChangeset
for help on using the changeset viewer.