Ignore:
Timestamp:
Feb 25, 2018, 3:06:51 PM (6 years ago)
Author:
djay
Message:

Fix issue #163 and add support for extra cookie through definition of ecookie array map and the corresponding ecookie_lenght. This give the capability to return more than only a single Cookie.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/response_print.c

    r862 r867  
    26232623  if(tmpSess!=NULL){
    26242624    map *_tmp=getMapFromMaps(m,"lenv","cookie");
     2625    maps *tmps=getMaps(m,"senv");
    26252626    char* sessId=NULL;
    26262627    if(_tmp!=NULL){
    26272628      printf("Set-Cookie: %s; HttpOnly\r\n",_tmp->value);
     2629      map *_tmp1=getMapFromMaps(m,"senv","ecookie_length");
     2630      if(_tmp1!=NULL){
     2631        int len=atoi(_tmp1->value);
     2632        int cnt=0;
     2633        for(cnt=0;cnt<len;cnt++){
     2634          map* _tmp2=getMapArray(tmps->content,"ecookie",cnt);
     2635          if(_tmp2!=NULL)
     2636            printf("Set-Cookie: %s; HttpOnly\r\n",_tmp->value);
     2637        }
     2638      }
    26282639      printf("P3P: CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"\r\n");
    26292640      char session_file_path[100];
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png