summaryrefslogtreecommitdiff
path: root/contrib/awk/awklib/eg/network/protbase.awk
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-11-02 21:06:08 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-11-02 21:06:08 +0000
commitce83bef85e2e23eb8d5b30b9f4987d323094c3f4 (patch)
treecd2c7fd87952f47d303b90e49b90c14bccf7e292 /contrib/awk/awklib/eg/network/protbase.awk
parent4192247c04a09b9f83953a0d00f7992e8afaf976 (diff)
Notes
Diffstat (limited to 'contrib/awk/awklib/eg/network/protbase.awk')
-rw-r--r--contrib/awk/awklib/eg/network/protbase.awk11
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)
+}