Roxen.git / server / etc / test / tests / http / http10.pike

version» Context lines:

Roxen.git/server/etc/test/tests/http/http10.pike:61:       write_fragmented( f,    "GET "+argv[2]+" HTTP/1.0"+sep+    "Connection: close"+sep+    extra_headers+    "User-Agent: Roxen Testscript"+sep+sep,    psize );       string _d = f->read();    +  if ( !_d ) +  if(!fail) +  _d = "HTTP/1.0 500 Internal Server Error\r\n"; +  else +  exit( OK ); +     array q = _d/"\r\n\r\n";    if( sizeof( q ) < 2 )    exit( BADHEADERS );       verify_headers( q[0], strlen(q[1]), "HTTP/1.0",    (fail?500:(argv[2] != "/nofile" ? 200 : 404)),    !fail && (argv[2][strlen(argv[2])-3..]=="raw"));       if( (int)argv[3] )    if( q[1] != ("\0" * (int)argv[3]) )    exit( BADDATA );       exit( OK );   }