Search squid archive

squid and linefeeds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

Squid 3.1.12/FreeBSD 9.1-PRERELEASE/amd64

I have a weird problem downloading the text files (not sure with all of them or not) from an FTP through squid. When I download them through squid they have DOS line feeds in 'em (symbols commonly represented in terminals line ^M, I think everyone seen such things in text files from non-Unices). When I download the same file without squid it's fine.

Binary files aren't affected.

Why is that ?



# wget -O - ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/portmaster-3.13.13.tar.gz.asc | sha256 --2012-09-04 14:13:48-- ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/portmaster-3.13.13.tar.gz.asc Resolving proxy.norma.perm.ru (proxy.norma.perm.ru)... fd00::301, 192.168.3.1 Connecting to proxy.norma.perm.ru (proxy.norma.perm.ru)|fd00::301|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `STDOUT'

    [ <=> ] 499         --.-K/s   in 0s

2012-09-04 14:13:48 (19.4 MB/s) - written to stdout [499]

739d3272669cf4cfbff94cef53822830477e922e87b57ea563c86543d11bcb3c

# wget --proxy=off -O - ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/portmaster-3.13.13.tar.gz.asc | sha256 --2012-09-04 14:14:04-- ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/portmaster-3.13.13.tar.gz.asc
           => `-'
Resolving ftp.freebsd.org (ftp.freebsd.org)... 2001:4f8:0:2::e, 2001:6c8:130:800::4, 204.152.184.73, ... Connecting to ftp.freebsd.org (ftp.freebsd.org)|2001:4f8:0:2::e|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/FreeBSD/ports/distfiles ... done.
==> SIZE portmaster-3.13.13.tar.gz.asc ... 488
==> EPSV ... done.    ==> RETR portmaster-3.13.13.tar.gz.asc ... done.
Length: 488 (unauthoritative)

100%[==============================================================================>] 488 --.-K/s in 0.01s

2012-09-04 14:14:07 (39.6 KB/s) - written to stdout [488]

27143e3e2ff2f03e745b1c26ad1791eace1d88ee3ca5f61df1f45730ed5dfb23


# squid -v
Squid Cache: Version 3.1.12
configure options: '--with-default-user=squid' '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/var/squid' '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid/squid.pid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--disable-translation' '--enable-auth=basic digest negotiate ntlm' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB squid_radius_auth LDAP SASL YP' '--enable-digest-auth-helpers=password ldap' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group ldap_group' '--enable-ntlm-auth-helpers=smb_lm' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-storeio=ufs diskd aufs' '--enable-disk-io=AIO Blocking DiskDaemon DiskThreads' '--enable-delay-pools' '--disable-wccp' '--enable-wccpv2' '--enable-arp-acl' '--enable-pf-transparent' '--disable-ecap' '--disable-loadable-modules' '--enable-icap-client' '--enable-kqueue' '--with-large-files' '--disable-optimizations' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.0' 'build_alias=amd64-portbld-freebsd9.0' 'CC=cc' 'CFLAGS=-pipe -I/usr/local/include -I/usr/local/include -g -DLDAP_DEPRECATED' 'LDFLAGS= -L/usr/local/lib -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CXX=c++' 'CXXFLAGS=-pipe -I/usr/local/include -I/usr/local/include -g -DLDAP_DEPRECATED' 'CPP=cpp' --with-squid=/usr/ports/www/squid31/work/squid-3.1.12

# grep -i ftp /usr/local/etc/squid/squid.conf
ftp_user anonymous
ftp_passive on
acl FTP proto FTP


Thanks, guys.
Eugene.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux