summaryrefslogtreecommitdiffstats
path: root/contrib/awk/awklib/eg/network/protbase.awk
blob: 16199e45121e471dc79b6c8a308654387cdc98d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
{ request = request "\n" $0 }

END {
  BLASTService     = "/inet/tcp/0/www.ncbi.nlm.nih.gov/80"
  printf "POST /cgi-bin/BLAST/nph-blast_report HTTP/1.0\n" |& BLASTService
  printf "Content-Length: " length(request) "\n\n"         |& BLASTService
  printf request                                           |& BLASTService      
  while ((BLASTService |& getline) > 0)
      print $0
  close(BLASTService)
}
OpenPOWER on IntegriCloud