Re: cURL 7.16.4 released - VMS

This is a discussion on Re: cURL 7.16.4 released - VMS ; From: "AlexNOSPAMDaniels@themail.co.uk" > If there is an existing file, then a new curl output file appears to > inherit some of its charactistics. > [...] As the HELP says: CRTL creat Description [...] o By default, the new file inherits ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Re: cURL 7.16.4 released

  1. Re: cURL 7.16.4 released

    From: "AlexNOSPAMDaniels@themail.co.uk"

    > If there is an existing file, then a new curl output file appears to
    > inherit some of its charactistics.
    > [...]


    As the HELP says:

    CRTL

    creat

    Description

    [...]

    o By default, the new file inherits certain attributes from
    the existing version of the file unless those attributes are
    specified in the creat call. The following attributes are
    inherited:

    - Record format (FAB$B_RFM)

    - Maximum record size (FAB$W_MRS)

    - Carriage control (FAB$B_RAT)

    - File protection

    [...]


    > I have a workaround,


    I can think of a couple, too.

    > but any chance of fixing this up?


    I'd assume that it could be done, at the cost of adding a lot of
    VMS-specific stuff to I-don't-know-how-many *open() instances. Not a
    good cost:benefit ratio, I'd guess.

    Patient: Doctor, it hurts when I do this.
    Doctor: Don't do that.

    ------------------------------------------------------------------------

    Steven M. Schweda sms@antinode-org
    382 South Warwick Street (+1) 651-699-9818
    Saint Paul MN 55105-2547

  2. Re: cURL 7.16.4 released

    On 21 Jul, 04:36, s...@antinode.org (Steven M. Schweda) wrote:
    > > I have a workaround,

    >
    > I can think of a couple, too.


    And one of them would be using your port of WGET right? That does
    behave better with this.

    $ pip wget -"V"|sea sys$pipe wge
    GNU Wget 1.9.1c
    $ write sys$output f$gets("version")
    V8.3
    $ wget "http://curl.haxx.se/"
    --05:14:49-- http://curl.haxx.se/
    => `index.html'
    Resolving curl.haxx.se... 91.191.140.28
    Connecting to curl.haxx.se[91.191.140.28]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 13,381 [text/html]

    100%[====================================>] 13,381 13.67K/s

    05:14:51 (13.65 KB/s) - `index.html' saved [13381/13381]

    $ cre index.html;2
    anything
    Exit
    $ wget "http://curl.haxx.se/"
    --05:15:04-- http://curl.haxx.se/
    => `index.html.3'
    Resolving curl.haxx.se... 91.191.140.28
    Connecting to curl.haxx.se[91.191.140.28]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 13,381 [text/html]

    100%[====================================>] 13,381 16.33K/s

    05:15:05 (16.30 KB/s) - `index.html.3' saved [13381/13381]

    $ pip dir/fu index.html | sea sys$pipe ";","record form"
    index.html;3 File ID: (8439,17,0)
    Record format: Stream_LF, maximum 0 bytes, longest 32767 bytes
    index.html;2 File ID: (4746,42147,0)
    Record format: Variable length, maximum 0 bytes, longest 8 bytes
    index.html;1 File ID: (4586,16888,0)
    Record format: Stream_LF, maximum 0 bytes, longest 32767 bytes
    $

    Alex


+ Reply to Thread