diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-11-02 21:06:08 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-11-02 21:06:08 +0000 |
| commit | ce83bef85e2e23eb8d5b30b9f4987d323094c3f4 (patch) | |
| tree | cd2c7fd87952f47d303b90e49b90c14bccf7e292 /contrib/awk/awklib/eg/network/protbase.awk | |
| parent | 4192247c04a09b9f83953a0d00f7992e8afaf976 (diff) | |
Notes
Diffstat (limited to 'contrib/awk/awklib/eg/network/protbase.awk')
| -rw-r--r-- | contrib/awk/awklib/eg/network/protbase.awk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/awk/awklib/eg/network/protbase.awk b/contrib/awk/awklib/eg/network/protbase.awk new file mode 100644 index 000000000000..16199e45121e --- /dev/null +++ b/contrib/awk/awklib/eg/network/protbase.awk @@ -0,0 +1,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) +} |
