* [9fans] little addition to hget: dump headers
@ 2003-02-11 22:36 mark powers
2003-02-11 21:55 ` Scott Schwartz
2003-02-12 2:02 ` David Presotto
0 siblings, 2 replies; 4+ messages in thread
From: mark powers @ 2003-02-11 22:36 UTC (permalink / raw)
To: 9fans
hi all,
I just got around to installing html2ps, the perl script. my favorite
feature of it so far is that it can crawl recursively down a tree of
www pages and assemble them into a DSC conforming postscript file; but
to do url retreival it needs to invoke a program that dumps http
headers along with data. ergo, this silly little diff which gives
hget an -h (print headers) option.
diff $home/src/cmd/hget.c /sys/src/cmd/hget.c
64,65d63
< int headerprint;
<
78c76
< fprint(2, "usage: %s [-v] [-h] [-o outfile] [-p body] [-x netmtpt] url\n", argv0);
---
> fprint(2, "usage: %s [-v] [-o outfile] [-p body] [-x netmtpt] url\n", argv0);
101,103d98
< case 'h':
< headerprint = 1;
< break;
583,584d577
< if(headerprint)
< fprint(1, "%s\n", buf);
p.s. anyone managed to port netpbm to APE?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] little addition to hget: dump headers
2003-02-11 22:36 [9fans] little addition to hget: dump headers mark powers
@ 2003-02-11 21:55 ` Scott Schwartz
2003-02-12 2:02 ` David Presotto
1 sibling, 0 replies; 4+ messages in thread
From: Scott Schwartz @ 2003-02-11 21:55 UTC (permalink / raw)
To: 9fans
> p.s. anyone managed to port netpbm to APE?
I did that in the days of the second edition... I don't recall any
special problems.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] little addition to hget: dump headers
2003-02-11 22:36 [9fans] little addition to hget: dump headers mark powers
2003-02-11 21:55 ` Scott Schwartz
@ 2003-02-12 2:02 ` David Presotto
1 sibling, 0 replies; 4+ messages in thread
From: David Presotto @ 2003-02-12 2:02 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
I put the -h in hget and updated sources. However, I wasn't sure about
the placement of:
583,584d577
< if(headerprint)
< fprint(1, "%s\n", buf);
It didn't quite make sense in my hget.c. Please make sure
that the hget.c does what you expected.
[-- Attachment #2: Type: message/rfc822, Size: 2239 bytes --]
From: markp@panix.com (mark powers)
To: 9fans@cse.psu.edu
Subject: [9fans] little addition to hget: dump headers
Date: Tue, 11 Feb 2003 17:36:05 -0500
Message-ID: <20030211213814.A4857988E3@mail3.panix.com>
hi all,
I just got around to installing html2ps, the perl script. my favorite
feature of it so far is that it can crawl recursively down a tree of
www pages and assemble them into a DSC conforming postscript file; but
to do url retreival it needs to invoke a program that dumps http
headers along with data. ergo, this silly little diff which gives
hget an -h (print headers) option.
diff $home/src/cmd/hget.c /sys/src/cmd/hget.c
64,65d63
< int headerprint;
<
78c76
< fprint(2, "usage: %s [-v] [-h] [-o outfile] [-p body] [-x netmtpt] url\n", argv0);
---
> fprint(2, "usage: %s [-v] [-o outfile] [-p body] [-x netmtpt] url\n", argv0);
101,103d98
< case 'h':
< headerprint = 1;
< break;
583,584d577
< if(headerprint)
< fprint(1, "%s\n", buf);
p.s. anyone managed to port netpbm to APE?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] little addition to hget: dump headers
@ 2003-02-12 3:58 mark powers
0 siblings, 0 replies; 4+ messages in thread
From: mark powers @ 2003-02-12 3:58 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
cool, my first "contribution to the community".
I goofed; hget changed (https support) since the version I did the
diff against, which is why the line numbers didn't make sense. sorry
for the confusion.
[-- Attachment #2: Type: message/rfc822, Size: 4322 bytes --]
[-- Attachment #2.1.1: Type: text/plain, Size: 274 bytes --]
I put the -h in hget and updated sources. However, I wasn't sure about
the placement of:
583,584d577
< if(headerprint)
< fprint(1, "%s\n", buf);
It didn't quite make sense in my hget.c. Please make sure
that the hget.c does what you expected.
[-- Attachment #2.1.2: Type: message/rfc822, Size: 2339 bytes --]
From: markp@panix.com (mark powers)
To: 9fans@cse.psu.edu
Subject: [9fans] little addition to hget: dump headers
Date: Tue, 11 Feb 2003 17:36:05 -0500
Message-ID: <20030211213814.A4857988E3@mail3.panix.com>
hi all,
I just got around to installing html2ps, the perl script. my favorite
feature of it so far is that it can crawl recursively down a tree of
www pages and assemble them into a DSC conforming postscript file; but
to do url retreival it needs to invoke a program that dumps http
headers along with data. ergo, this silly little diff which gives
hget an -h (print headers) option.
diff $home/src/cmd/hget.c /sys/src/cmd/hget.c
64,65d63
< int headerprint;
<
78c76
< fprint(2, "usage: %s [-v] [-h] [-o outfile] [-p body] [-x netmtpt] url\n", argv0);
---
> fprint(2, "usage: %s [-v] [-o outfile] [-p body] [-x netmtpt] url\n", argv0);
101,103d98
< case 'h':
< headerprint = 1;
< break;
583,584d577
< if(headerprint)
< fprint(1, "%s\n", buf);
p.s. anyone managed to port netpbm to APE?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-12 3:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-11 22:36 [9fans] little addition to hget: dump headers mark powers
2003-02-11 21:55 ` Scott Schwartz
2003-02-12 2:02 ` David Presotto
2003-02-12 3:58 mark powers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).