- Timestamp:
- Dec 27, 2012, 5:00:12 PM (12 years ago)
- Location:
- trunk/zoo-project
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/HISTORY.txt
r379 r380 11 11 * Add Python ZOO-API to access ZOO-Kernel internel functions 12 12 * Add a [headers] section in main.cfg file to add specifics to header returned 13 * Add support for multiple outputs 13 * Add support for multiple outputs for both GET and POST requests 14 14 15 15 Version 1.2.0-rc3 -
trunk/zoo-project/zoo-kernel/zoo_loader.c
r376 r380 78 78 fprintf (stderr, "RequestMethod: (%s) %d %d\n", cgiRequestMethod,strncasecmp(cgiRequestMethod,"post",4),strncmp(cgiContentType,"text/xml",8)==0 || strncasecmp(cgiRequestMethod,"post",4)==0); 79 79 fprintf (stderr, "Request: %s\n", cgiQueryString); 80 fprintf (stderr, "ContentType: %s\n", cgiContentType); 81 fprintf (stderr, "ContentLength: %d\n", cgiContentLength); 80 82 fflush(stderr); 81 83 #endif … … 112 114 }else{ 113 115 char *buffer=new char[cgiContentLength+1]; 114 if(fread(buffer,sizeof(char),cgiContentLength,cgiIn)){ 116 int r=0; 117 if((r=fread(buffer,sizeof(char),cgiContentLength,cgiIn))!=0){ 115 118 buffer[cgiContentLength]=0; 116 119 tmpMap=createMap("request",buffer); … … 209 212 addToMap(tmpMap,"xrequest",(char*)xmlbuff); 210 213 char *tmp=(char*)xmlbuff; 211 fprintf(stderr,"%s\n",tmp);212 214 xmlFree(xmlbuff); 213 215 } -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r379 r380 1805 1805 tmpmaps->next=NULL; 1806 1806 } 1807 else 1807 else{ 1808 if(tmpmaps->name!=NULL) 1809 free(tmpmaps->name); 1808 1810 tmpmaps->name=strdup((char*)val);; 1811 } 1809 1812 xmlFree(val); 1810 1813 } … … 1835 1838 xmlFree(val); 1836 1839 } 1840 if(request_output_real_format==NULL) 1841 request_output_real_format=dupMaps(&tmpmaps); 1842 else 1843 addMapsToMaps(&request_output_real_format,tmpmaps); 1837 1844 cur2=cur2->next; 1845 while(cur2!=NULL && cur2->type != XML_ELEMENT_NODE) 1846 cur2=cur2->next; 1838 1847 } 1839 1848 } 1840 1849 cur1=cur1->next; 1850 while(cur1!=NULL && cur1->type != XML_ELEMENT_NODE) 1851 cur1=cur1->next; 1841 1852 } 1842 1853 } 1843 if(request_output_real_format==NULL) 1844 request_output_real_format=dupMaps(&tmpmaps); 1845 else 1846 addMapsToMaps(&request_output_real_format,tmpmaps); 1847 #ifdef DEBUG 1848 dumpMaps(tmpmaps); 1849 #endif 1850 freeMaps(&tmpmaps); 1851 free(tmpmaps); 1854 if(tmpmaps!=NULL){ 1855 freeMaps(&tmpmaps); 1856 free(tmpmaps); 1857 tmpmaps=NULL; 1858 } 1852 1859 } 1853 1860
Note: See TracChangeset
for help on using the changeset viewer.