Changeset 825
- Timestamp:
- May 17, 2017, 2:48:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/ulinet.c
r820 r825 82 82 if(strncmp("Set-Cookie: ",(char*)buffer,12)==0){ 83 83 int i; 84 char env[256];85 char path[256];86 char domain[256];87 84 char* tmp; 88 85 for(i=0;i<12;i++) … … 92 89 ; 93 90 #endif 94 sscanf((char*)buffer,"%s; path=%s; domain=%s",env,path,domain);95 91 _HINTERNET *psInternet=(_HINTERNET *)data; 92 tmp=strtok(buffer,";"); 93 if(tmp!=NULL){ 94 sprintf(CCookie[psInternet->id],"%s",tmp); 95 } 96 96 tmp=strcat(env,CCookie[psInternet->id][0]); 97 #ifdef MSG_LAF_OUT98 printf("\n**Cookie env : [%s] , path : [%s], domain : [%s]**\n",env,path,domain);99 printf("buffer : %d (%s) (%s) (%s)\n",(buffer==NULL),buffer,tmp,CCookie);100 #endif101 strcpy(CCookie[psInternet->id][0],tmp);102 97 } 103 98 return size * nmemb;//write_data_into(buffer,size,nmemb,data,HEADER);
Note: See TracChangeset
for help on using the changeset viewer.