<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Curl and --crlf in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878608#M10768</link>
    <description>&amp;gt; As usual, it might help to see the actual&lt;BR /&gt;&amp;gt; command you used, and its output.&lt;BR /&gt;&lt;BR /&gt;$ convert/fdl=fdl$source:ucssftp.fdl 'filename' ucswork:'f$parse(filename,,,"name")'.curl&lt;BR /&gt;$ curl --config ucscom:usas06rmt.cfg --user 'ftpuser':'site_password' --upload-file ucswork:'f$parse(filename,,,"name")'.curl ftp://'site':9021/"''remote_filename'"&lt;BR /&gt;&lt;BR /&gt;The fdl is:&lt;BR /&gt;SYSTEM&lt;BR /&gt; SOURCE                  OpenVMS&lt;BR /&gt;&lt;BR /&gt;FILE&lt;BR /&gt; ORGANIZATION            SEQUENTIAL&lt;BR /&gt;&lt;BR /&gt;RECORD&lt;BR /&gt; BLOCK_SPAN              yes&lt;BR /&gt; CARRIAGE_CONTROL        carriage_return&lt;BR /&gt; FORMAT                  stream_LF&lt;BR /&gt; SIZE                    0&lt;BR /&gt;&lt;BR /&gt;The Curl Config file:&lt;BR /&gt;--anyauth &lt;BR /&gt;--disable-epsv&lt;BR /&gt;--dump-header ucslog:usas06r.dmp &lt;BR /&gt;--ftp-method singlecwd&lt;BR /&gt;--ftp-ssl &lt;BR /&gt;--insecure&lt;BR /&gt;--progress-bar &lt;BR /&gt;#--trace ucslog:usas06r.trc &lt;BR /&gt;--trace-ascii ucslog:usas06r.trc&lt;BR /&gt;--use-ascii&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It might help to see a DIRE /FULL on the&lt;BR /&gt;&amp;gt; file, and a DUMP of the first couple of&lt;BR /&gt;&amp;gt; records, and some idea of how the file is&lt;BR /&gt;&amp;gt; supposed to look at the other end.&lt;BR /&gt;Record format:      Fixed length 250 byte records&lt;BR /&gt;Record attributes:  Carriage return carriage control&lt;BR /&gt;&lt;BR /&gt;1075300000099061009                                                                                                                                                                                                                                       &lt;BR /&gt;12C200709012006        0608    DIRECTOR, CONTRACTS &amp;amp; GRANTS                                DIRECTOR, CONTRACTS &amp;amp; GRANTS                                                                                                                                   &lt;BR /&gt;</description>
    <pubDate>Thu, 12 Oct 2006 08:43:49 GMT</pubDate>
    <dc:creator>James T Horn</dc:creator>
    <dc:date>2006-10-12T08:43:49Z</dc:date>
    <item>
      <title>Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878604#M10764</link>
      <description>When using Curl (Version 7.15.3) to try and transfer a Fixed length 250 byte record, Carriage  Return Carriage control to a FTPSERVE IBM FTP CS V1R6. They seem to need CrLf and Curl always get's an Partial_file error on any format other than Stream_LF.&lt;BR /&gt;Any help would be greatly appreciated.</description>
      <pubDate>Wed, 11 Oct 2006 13:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878604#M10764</guid>
      <dc:creator>James T Horn</dc:creator>
      <dc:date>2006-10-11T13:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878605#M10765</link>
      <description>As usual, it might help to see the actual&lt;BR /&gt;command you used, and its output.&lt;BR /&gt;&lt;BR /&gt;What's an "FTPSERVE IBM FTP CS V1R6"?&lt;BR /&gt;&lt;BR /&gt;Are you trying to do a binary transfer or an&lt;BR /&gt;ASCII transfer?  You're sending from the VMS&lt;BR /&gt;system, not getting on the "FTPSERVE" thing?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; They seem to need CrLf [...]&lt;BR /&gt;&lt;BR /&gt;Who are "they"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  Curl always [gets a] Partial_file error&lt;BR /&gt;&amp;gt; on any format other than Stream_LF.&lt;BR /&gt;&lt;BR /&gt;I haven't looked at the "curl" code in this&lt;BR /&gt;neighborhood, but it would not be unusual for&lt;BR /&gt;a UNIX-oriented program to be confused about&lt;BR /&gt;file size on VMS, when the file is not&lt;BR /&gt;Stream_LF or fixed-512 (Record attributes:&lt;BR /&gt;None).&lt;BR /&gt;&lt;BR /&gt;A binary FTP transfer should get all the&lt;BR /&gt;bytes to the other end, but if there are line&lt;BR /&gt;endings which need to be adjusted, then an&lt;BR /&gt;ASCII transfer may be needed.  If that&lt;BR /&gt;doesn't give you the results you want, then&lt;BR /&gt;you may need to fiddle with the file before&lt;BR /&gt;sending it, so that it gets reconstituted as&lt;BR /&gt;you'd like at the other end.&lt;BR /&gt;&lt;BR /&gt;It might help to see a DIRE /FULL on the&lt;BR /&gt;file, and a DUMP of the first couple of&lt;BR /&gt;records, and some idea of how the file is&lt;BR /&gt;supposed to look at the other end.&lt;BR /&gt;&lt;BR /&gt;Also, for an outbound FTP transfer, I'd&lt;BR /&gt;probably try COPY /FTP before I resorted to&lt;BR /&gt;a loose program like "curl" (or "wput").</description>
      <pubDate>Wed, 11 Oct 2006 14:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878605#M10765</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-11T14:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878606#M10766</link>
      <description>The Texas state Controller's office is wanting a Secure transfer using ssl of some files. They recommend BlueZone but we are needing to transfer from OpenVMS.&lt;BR /&gt;&lt;BR /&gt;I've tried the --crlf parameter which does not seem to make a difference. I convert the file from a Fixed Length, 250 byte record, Carriage Return Carriage Control to a Stream_LF, Carriage Return Carriage Control.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Oct 2006 15:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878606#M10766</guid>
      <dc:creator>James T Horn</dc:creator>
      <dc:date>2006-10-11T15:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878607#M10767</link>
      <description>&amp;gt; As usual, it might help to see the actual&lt;BR /&gt;&amp;gt; command you used, and its output.&lt;BR /&gt;&lt;BR /&gt;Still true.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The Texas state Controller's office is&lt;BR /&gt;&amp;gt; wanting a Secure transfer using ssl of&lt;BR /&gt;&amp;gt; some files. They recommend BlueZone but&lt;BR /&gt;&amp;gt; we are needing to transfer from OpenVMS.&lt;BR /&gt;&lt;BR /&gt;If the file is in some unusual VMS-specific&lt;BR /&gt;format, how much sense will it make at the&lt;BR /&gt;destination?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I've tried the --crlf parameter which does&lt;BR /&gt;&amp;gt; not seem to make a difference.&lt;BR /&gt;&lt;BR /&gt;I know nothing, but if you're trying to use&lt;BR /&gt;the "ftps" scheme, I wouldn't bet on it&lt;BR /&gt;knowing the difference between ASCII and&lt;BR /&gt;binary the way plain-old FTP does.  So curl's&lt;BR /&gt;--crlf option might have no effect with ftps.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I convert the file from a Fixed Length, 250&lt;BR /&gt;&amp;gt; byte record, Carriage Return Carriage&lt;BR /&gt;&amp;gt; Control to a Stream_LF, Carriage Return&lt;BR /&gt;&amp;gt; Carriage Control.&lt;BR /&gt;&lt;BR /&gt;Convert using CONVERT?  How?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It might help to see a DIRE /FULL on the&lt;BR /&gt;&amp;gt; file, and a DUMP of the first couple of&lt;BR /&gt;&amp;gt; records, and some idea of how the file is&lt;BR /&gt;&amp;gt; supposed to look at the other end.&lt;BR /&gt;&lt;BR /&gt;Still true.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Oct 2006 17:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878607#M10767</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-11T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878608#M10768</link>
      <description>&amp;gt; As usual, it might help to see the actual&lt;BR /&gt;&amp;gt; command you used, and its output.&lt;BR /&gt;&lt;BR /&gt;$ convert/fdl=fdl$source:ucssftp.fdl 'filename' ucswork:'f$parse(filename,,,"name")'.curl&lt;BR /&gt;$ curl --config ucscom:usas06rmt.cfg --user 'ftpuser':'site_password' --upload-file ucswork:'f$parse(filename,,,"name")'.curl ftp://'site':9021/"''remote_filename'"&lt;BR /&gt;&lt;BR /&gt;The fdl is:&lt;BR /&gt;SYSTEM&lt;BR /&gt; SOURCE                  OpenVMS&lt;BR /&gt;&lt;BR /&gt;FILE&lt;BR /&gt; ORGANIZATION            SEQUENTIAL&lt;BR /&gt;&lt;BR /&gt;RECORD&lt;BR /&gt; BLOCK_SPAN              yes&lt;BR /&gt; CARRIAGE_CONTROL        carriage_return&lt;BR /&gt; FORMAT                  stream_LF&lt;BR /&gt; SIZE                    0&lt;BR /&gt;&lt;BR /&gt;The Curl Config file:&lt;BR /&gt;--anyauth &lt;BR /&gt;--disable-epsv&lt;BR /&gt;--dump-header ucslog:usas06r.dmp &lt;BR /&gt;--ftp-method singlecwd&lt;BR /&gt;--ftp-ssl &lt;BR /&gt;--insecure&lt;BR /&gt;--progress-bar &lt;BR /&gt;#--trace ucslog:usas06r.trc &lt;BR /&gt;--trace-ascii ucslog:usas06r.trc&lt;BR /&gt;--use-ascii&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It might help to see a DIRE /FULL on the&lt;BR /&gt;&amp;gt; file, and a DUMP of the first couple of&lt;BR /&gt;&amp;gt; records, and some idea of how the file is&lt;BR /&gt;&amp;gt; supposed to look at the other end.&lt;BR /&gt;Record format:      Fixed length 250 byte records&lt;BR /&gt;Record attributes:  Carriage return carriage control&lt;BR /&gt;&lt;BR /&gt;1075300000099061009                                                                                                                                                                                                                                       &lt;BR /&gt;12C200709012006        0608    DIRECTOR, CONTRACTS &amp;amp; GRANTS                                DIRECTOR, CONTRACTS &amp;amp; GRANTS                                                                                                                                   &lt;BR /&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878608#M10768</guid>
      <dc:creator>James T Horn</dc:creator>
      <dc:date>2006-10-12T08:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878609#M10769</link>
      <description>&lt;!--!*#--&gt;I'm beyond my range of experience (and too&lt;BR /&gt;lazy to inspect the code), but guesswork&lt;BR /&gt;would say that with "--ftp-ssl", your&lt;BR /&gt;"ftp://" URL will act like an "ftps://" URL,&lt;BR /&gt;which you probably want.  Further, I'll&lt;BR /&gt;venture that with ftps, "--use-ascii" and&lt;BR /&gt;"--crlf" have no effect, as it's not really&lt;BR /&gt;(normal) FTP any more.&lt;BR /&gt;&lt;BR /&gt;You're already using CONVERT on the file to&lt;BR /&gt;make it Stream_LF.  If you want CR-LF line&lt;BR /&gt;endings, I'd expect " FORMAT stream" (instead&lt;BR /&gt;of "FORMAT stream_lf") to do that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 1075300000099061009&lt;BR /&gt;&amp;gt; 12C200709012006 0608 DIRECTOR, CONTRACTS &amp;amp; &amp;gt; GRANTS DIRECTOR, CONTRACTS &amp;amp; GRANTS&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;By "DUMP", I meant "DUMP", as in "DUMP&lt;BR /&gt;file_name", but it might not tell me much,&lt;BR /&gt;anyway.  You might wish to see if the&lt;BR /&gt;CONVERT (any of them) actually leaves you&lt;BR /&gt;with fixed-length records.&lt;BR /&gt;&lt;BR /&gt;If "curl" emits a "Partial_file error" with&lt;BR /&gt;the STREAM format file, and/or if the file at&lt;BR /&gt;the destination is actually truncated, then&lt;BR /&gt;the "curl" code may need some work.&lt;BR /&gt;Alternatively, it may help to ditch the&lt;BR /&gt;"--use-ascii" option, as once the file data&lt;BR /&gt;include CR-LF line endings, it may do more&lt;BR /&gt;harm than good.</description>
      <pubDate>Thu, 12 Oct 2006 09:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878609#M10769</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-12T09:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Curl and --crlf</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878610#M10770</link>
      <description>It is quite possible that the input files already has the right whatever_LFs embedded. And if the record format from DIR/FULL shows fixed then doing a CONVERT to whatever_LF does add characters to the output file.&lt;BR /&gt;&lt;BR /&gt;Without a DIR/FULL and DUMP/BLOCK=COUNT:1  output I can't tell. If you want give this a try:&lt;BR /&gt;&lt;BR /&gt;$ COPY org test&lt;BR /&gt;$ SET FILE/ATTRIBUTE=RFM:STM test&lt;BR /&gt;$ curl test&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Thu, 12 Oct 2006 16:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/curl-and-crlf/m-p/3878610#M10770</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2006-10-12T16:21:59Z</dc:date>
    </item>
  </channel>
</rss>

