Curl option on fileset FTP thread

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Curl option on fileset FTP thread

  • Creator
    Topic
  • #54949
    Mark Thompson
    Participant

      From a command line I can use this command to FTP a file to another server:

      Code:

      curl -s -Q “site umask 7” -T myFile ftp://server//directory/ –user myUserID:myPassword

      Any ideas on how to configure the cURL Options in NetConfig on a fileset FTP thread to send the “site umask 7” at connection time?  CURLOPT_Q and CURLOPT_CMD are not valid options.

      - Mark Thompson
      HealthPartners

    Viewing 6 reply threads
    • Author
      Replies
      • #83539
        Jim Kosloskey
        Participant

          Just guessing here – do you think this could be done with the -quote FTP Option in TclCurl?

          -quote {“site umask 7”}

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #83540
          Mark Thompson
          Participant

            Hi Jim,

            Tried that one too.  Adding CURLOPT_QUOTE to NetConfig produces:

            fset:init:WARN/0:  thread_name:01/15/2016 07:04:35] pcoGetCurlOptConfig: unsupported cURL option ‘CURLOPT_QUOTE’ for user

            - Mark Thompson
            HealthPartners

          • #83541
            Jim Kosloskey
            Participant

              Oh I thought you were writing a proc using TclCurl.

              I see  now you want to use the CURL Options in the IDE.

              I will noodle on that a bit but that seems to be a mystery spot as to the interaction betwween the IDE CURL Options (which are CURL) and the internal code which I believe is TclCurl. TclCurl as far as I know is not a on-for-one implementation of CURL so that is why there are things like the -quote FTP option in TclCurl and why legitimate CURL Options are rejected.

              In the meantime maybe someone with more in depth knowledge of what can be specified in the IDE CURL Options can reply.

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #83542
              Jim Kosloskey
              Participant

                Mark,

                I wonder if you could place a proc in the ‘Startup’  (Fileset FTP CURL Options panel) which just set the -quote TclCurl option and then that option would be there for when the Fileset protocol actually does the FTP work.

                email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

              • #83543
                Charlie Bursell
                Participant

                  cURL options shown in the GUI are libcURL options and not TclCurl.

                  You are passing these options to the engine which uses libCurl.

                  Take a look here.  The examples are mostly C so you would have to extrapolate.

                  http://curl.haxx.se/libcurl/c/options-in-examples.html

                • #83544
                  Mark Thompson
                  Participant

                    Hi Charlie,

                    The libcurl documentation describes CURLOPT_QUOTE which is exactly what I need.  The engine doesn’t recoginze that option when I put it into the NetConfig cURL Options tab.

                    It also doesn recognize the PREQUOTE or POSTQUOTE options, although CURLOPT_VERBOSE works fine.

                    - Mark Thompson
                    HealthPartners

                  • #83545
                    Charlie Bursell
                    Participant

                      Only the “switch” type options (on/off) are available.  Too many things to go wrong with string options

                  Viewing 6 reply threads
                  • The forum ‘Cloverleaf’ is closed to new topics and replies.