ache
5d356fcfe8
strtol -> strtoll (for off_t file size)
2001-09-01 23:36:40 +00:00
alex
487729ee23
Remove whitespace at end of line I happened to find during my last edit.
2001-08-30 02:32:00 +00:00
alex
30bc91ada7
Add support for proper URI encoding, using strvisx(3)'s VIS_HTTPSTYLE.
...
Requests through a proxy are still broken for URIs that contain
blanks, since this required a bigger rewrite of the whole function.
2001-08-30 02:30:33 +00:00
mike
e37b33abc6
Add support for HTTP/1.1 name-based virtual hosts. Also, use
...
asprintf(3) when creating the request string, as the length of
a path is defined as unlimited by the standard and limiting the
total request to 4K is awfully arbitrary.
PR: 30054
Submitted by: Joseph Mallett <jmallett@xMach.org>
MFC after: 8 days
2001-08-30 00:57:35 +00:00
brian
4fa1bbf1c3
Fix my previous snprintf() patches (which were largely no-ops).
...
Mostly submitted by: bde
2001-08-23 12:53:15 +00:00
brian
be0965e41d
Display a better error message when snprintf() returns < 0
...
Pointed out by: bde
2001-08-21 11:39:45 +00:00
brian
5bd90784a6
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 14:46:40 +00:00
ru
061b585fd0
Do not call freeaddrinfo(res0) twice.
...
PR: bin/21476
2000-09-25 11:38:28 +00:00
ru
f86fac3085
- Reflect `gateport' variable type change.
...
- Make it compile with -Wall.
PR: 18619
Submitted by: David Malone <dwmalone@maths.tcd.ie>
Reviewed by: ru
2000-06-24 15:34:31 +00:00
ume
345437204c
Make sure to use native IPv4 addrerss even if getaddrinfo()
...
returns IPv4 mapped IPv6 address. FTP is nervous about address
family.
Submitted by itojun and slightly modified to fit our ftp(1).
2000-06-14 15:26:58 +00:00
shin
c83f0a97bd
Add -4 and -6 options.
...
Current getaddrinfo() implemetation has a problem of too much resolving
waiting time on INET6 enabled systems.
-4 and -6 options can limit name resolving address family and is a possible
workaround for the problem.
Approved by: jkh
2000-02-15 15:11:40 +00:00
shin
ce3ac581a3
Add more dual stack consideration.
...
-Should retry as much as possible when dest addr and
source addr(specified with -s option) address family
missmatch happend
Approved by: jkh
2000-02-12 17:59:06 +00:00
shin
0a2a73d550
Fix parsing problems.
...
-"ftp hostname:/path" was not working.
- IPv6 raw addr specification was not well supported, such as,
"ftp http://\[1:2:3:4:5:6:7:8:\]/index.html "
Approved by: jkh
2000-02-12 15:16:59 +00:00
shin
4b6c4ae8e8
Fix several bogus bugs
...
-Some address resolving related structures were not freed after use.
-Some error messages were not printed out correctly.
Approved by: jkh
2000-02-12 15:03:05 +00:00
shin
ce15efb7c0
another tcp apps IPv6 updates.(should be make world safe)
...
ftp, telnet, ftpd, faithd
also telnet related sync with crypto, secure, kerberosIV
Obtained from: KAME project
2000-01-27 09:28:38 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
ru
d321f9c4e4
- add "-s src_addr" option to allow setting of the source IP address;
...
- fix two minor bugs;
- slightly cleanup manpage.
1999-06-25 14:11:16 +00:00
ache
1d90974832
One more ctype cast
1997-12-16 08:58:15 +00:00
ache
57d8708b90
Add more (unsigned char) casts to ctype macros
1997-12-16 08:22:37 +00:00
pst
5ff5a36e72
Sync with NetBSD v1.3.
...
Keep I8N1 and quarantine port code. Replace our security fix with NetBSD's
(their idea was better).
1997-12-13 20:38:21 +00:00
ache
fae8900137
Localize it (ctype)
...
8bit ctype clean fixes
(I can't input 8bit chars otherwise in this new ftp, it beeps)
1997-06-27 09:30:15 +00:00
msmith
89334bc82c
Import substantial improvements to ftp(1) from NetBSD, largely the
...
work of Luke Mewburn.
This includes, but is not limited to :
- commandline editing and history.
- local and remote filename completion.
- a new progress display.
- the ability to access files using either the ftp or http protocols,
and use http proxies for ftp transfers.
The FreeeBSD "restricted ports" functionality was preserved.
Obtained from: NetBSD
1997-06-25 08:56:46 +00:00