awklib/eg/network/protbase.awk
raw| 1 | { request = request "\n" $0 } |
| 2 | |
| 3 | END { |
| 4 | BLASTService = "/inet/tcp/0/www.ncbi.nlm.nih.gov/80" |
| 5 | printf "POST /cgi-bin/BLAST/nph-blast_report HTTP/1.0\n" |& BLASTService |
| 6 | printf "Content-Length: " length(request) "\n\n" |& BLASTService |
| 7 | printf request |& BLASTService |
| 8 | while ((BLASTService |& getline) > 0) |
| 9 | print $0 |
| 10 | close(BLASTService) |
| 11 | } |