1

I have to make a web service call through CURL in shell script. For this, CURL should be enabled.

Below is my server details:

Sun Microsystems Inc.   SunOS 5.10      Generic January 2005

below is a web service call through CURL:

curl -u graeme:abcd -i -F name=files -F [email protected] https://app.abcxyz.com/api/settings/employees/upload/csv_external
  • How should I enable or install CURL in my Solaris server?
  • Can I use CURL in my shell script?
  • Through CURL, can I post the file too?
4
  • What kind of UNIX are you running?
    – Bratchley
    Commented May 17, 2016 at 3:27
  • Depending on what system you're running on, install curl from repositories, download the source and compile it, use the ports system to install it, or whatever other means your unspecified distribution uses to install software.
    – DopeGhoti
    Commented May 17, 2016 at 3:27
  • 1
    If it's Oracle Linux then yum install curl if it's Solaris you'll have to use OpenCSW
    – Bratchley
    Commented May 17, 2016 at 3:28
  • Your OS is old. If on Sol11 it would be simple. I suggest to spend the $25 and buy the Companion CD which you can use over and over again on all servers in your org and it includes many, many packages. On Sol11 you'll get it for free from Oracle's official IPS repo.
    – peterh
    Commented Jun 4, 2016 at 15:43

1 Answer 1

1

Depends upon which unix/linux you are using, you would need to install "curl" package.

If it supports rpm, install curl rpm after downloading from any rpm repositories (e.g. http://rpmfusion.org/ ) or setup yum.

If its debian based try getting debian based package using apt-get etc.

Note: download and install only those packages which are compatible to 64/32 bit version of your operating system.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.