JSCoverage
code coverage for JavaScript

Bug #34 - jscoverage proxy can't set cookie exactly

Submitted by: tesger
Date submitted: 2011-03-05 04:06:06 UTC
Status: Open
   I start a jscoverage proxy ,but I can't success to login in a website ,I 
Check the cookie and found :
  Set-Cookie: pt2gguin=o0000450260; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; 
PATH=/; DOMAIN=qq.com;, uin=o0000450260; PATH=/; DOMAIN=qq.com;, 
skey=@iiqpCDThu; PATH=/; DOMAIN=qq.com;, clientuin=; EXPIRES=Fri, 02-Jan-1970 
00:00:00 GMT; PATH=/; DOMAIN=qq.com;, clientkey=; EXPIRES=Fri, 02-Jan-1970 
00:00:00 GMT; PATH=/; DOMAIN=qq.com;, zzpaneluin=; EXPIRES=Fri, 02-Jan-1970 
00:00:00 GMT; PATH=/; DOMAIN=qq.com;, zzpanelkey=; EXPIRES=Fri, 02-Jan-1970 
00:00:00 GMT; PATH=/; DOMAIN=qq.com;, ptisp=ctc; PATH=/; DOMAIN=qq.com;, 
ptuserinfo=74657269736c69; PATH=/;DOMAIN=ptlogin2.qq.com;


    please to notice the field : "DOMIN=qq.com;," , It'should only 
be "DOMIN=qq.com;"  .  please to fix the bug ,thank a lot. 
Submitted by: Ed
Date submitted: 2011-03-06 02:21:02 UTC
Thanks, I'll look into it.
Submitted by: tesge
Date submitted: 2011-03-11 15:02:17 UTC
hi..Ed, thanks to your reply,  We have fixed the bug by modified the file :http-
message.c  ,just like these:


void HTTPMessage_add_header(HTTPMessage * message, const char * name, const 
char * value) {
  HTTPHeader * last = NULL;
  for (HTTPHeader * h = message->headers; h != NULL; h = h->next) {
    /**
    if (strcmp(h->name, name) == 0) {
      char * new_value;
      xasprintf(&new_value, "%s, %s", h->value, value);
      free(h->value);
      h->value = new_value;
      return;
    }
    **/
    last = h;
  }


  I rebuild the jescoverage-server.exe on my cgywin and can login in my website 
sucessly.  thanks .
Attachment: http-message.c
Submitted by: Anonymous
Date submitted: 2012-01-13 05:29:46 UTC
do we have a jscoverage-server.exe available after this fix ? I am also having 
issues with cookie and not able to login to my website. But I don't know how to 
take this http-message.c and build this. Can I get jscoverage-server.exe with 
this fix ?
Submitted by: Ed
Date submitted: 2012-01-13 10:51:24 UTC
This program is not really being maintained any more; it's not likely there will
be any further releases of it.  You may want to try something else.

Add a comment

Your name:
Your email address (optional - will never be displayed):
Comment:
Attachment (optional - maximum 64 KiB):
Copyright © 2008 Silicon Forks siliconforks.com
siliconforks@siliconforks.com