Re: fetch http://cgi returns -1 size

2000-07-13 Thread Jun Kuriyama

At 12 Jul 2000 08:56:11 GMT,
Dag-Erling Smorgrav [EMAIL PROTECTED] wrote:
 The bug is only in the status report, check the acutal size of
 fetch.out. I fixed this in a commit half an hour ago.

Thanks!

By the way, current implementation of fetch(1) ignores "301 redirect"
silently.  Is it expected behavior?  Should it make warning message
without -v option? (or following redirection?)

% fetch http://www.lyra.org/cgi-bin/viewcvs.cgi
% ls fetch.out
ls: fetch.out: No such file or directory
% fetch -v -v http://www.lyra.org/cgi-bin/viewcvs.cgi
looking up www.lyra.org
connecting to www.lyra.org:80
requesting http://www.lyra.org:80/cgi-bin/viewcvs.cgi
301 redirect to /cgi-bin/viewcvs.cgi/


-- 
Jun Kuriyama [EMAIL PROTECTED] // FreeBSD Project


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: fetch http://cgi returns -1 size

2000-07-13 Thread Dag-Erling Smorgrav

Jun Kuriyama [EMAIL PROTECTED] writes:
 By the way, current implementation of fetch(1) ignores "301 redirect"
 silently.  Is it expected behavior?  Should it make warning message
 without -v option? (or following redirection?)

Uh, that's a bug. It's supposed to work. I'll be right on it.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: fetch http://cgi returns -1 size

2000-07-13 Thread Dag-Erling Smorgrav

Jun Kuriyama [EMAIL PROTECTED] writes:
 By the way, current implementation of fetch(1) ignores "301 redirect"
 silently.  Is it expected behavior?  Should it make warning message
 without -v option? (or following redirection?)

The bug is twofold: first, it doesn't handle relative redirects
properly; second, because of a small logic bug it doesn't actually
loop back to try again with the new URL... I'll commit a fix in a few
minutes.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: fetch http://cgi returns -1 size

2000-07-12 Thread Dag-Erling Smorgrav

Jun Kuriyama [EMAIL PROTECTED] writes:
 My current box (make world'ed this morning) fails on fetch(1) for some
 CGI scripts.

The bug is only in the status report, check the acutal size of
fetch.out. I fixed this in a commit half an hour ago.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message