Skip to main content

Mixed ASCII/EBCDIC output curl ftp via HTTP proxy

  • December 3, 2016
  • 1 reply
  • 0 views

curl 7.42.1 (i370-ibm-openedition)
Accessing ftp://service.boulder.ibm.com/s390/holddata/month.txt
by an HTTP proxy through a firewall, for example:

http_proxy=http://redacted.com:80
ALL_PROXY="$http_proxy" export http_proxy ALL_PROXY

The data arrive so that:

The first few thousand bytes when translated from EBCDIC to
ASCII (that’s right!) appear as EBCDIC. The remainder of the
file is good EBCDIC.

curl -q 'ftp://service.boulder.ibm.com/s390/holddata/month.txt;type=I
curl -q ‘ftp://service.boulder.ibm.com/s390/holddata/month.txt;type=A
… produce identical bad results.

– gil

1 reply

Tatiana Balaburkina
Forum|alt.badge.img+1

curl 7.42.1 (i370-ibm-openedition)
Accessing ftp://service.boulder.ibm.com/s390/holddata/month.txt
by an HTTP proxy through a firewall, for example:

http_proxy=http://redacted.com:80
ALL_PROXY="$http_proxy" export http_proxy ALL_PROXY

The data arrive so that:

The first few thousand bytes when translated from EBCDIC to
ASCII (that’s right!) appear as EBCDIC. The remainder of the
file is good EBCDIC.

curl -q 'ftp://service.boulder.ibm.com/s390/holddata/month.txt;type=I
curl -q ‘ftp://service.boulder.ibm.com/s390/holddata/month.txt;type=A
… produce identical bad results.

– gil

Hi,

We were not able to reproduce this situation. We recommend to use new version. Could you try cURL 7.52.1?