Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    # server.pl, my mini-server in perl
    ...
    print "lines[0] = $lines[0]\n";
    print "lines[1] = $lines[1]\n";
    print "lines[2] = $lines[2]\n";
    
  2. or download this
    > more test4a.txt
    POST /cgi-bin/myprog.cgi  HTTP/1.0
    ...
    Referer: http://www.rutgers.edu
    Content-type: application/x-www-form-urlencoded
    Content-length: 16
    
  3. or download this
    > ./server.pl test4a.txt
    lines[0] = Content-length: 16
    
    lines[1] = 
    lines[2] =