C++ Curl wrapper to REST Nirvanix api

Last post 05-21-2008 5:42 PM by BarryR. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-20-2008 1:53 PM

    • mclaio
    • Top 75 Contributor
    • Joined on 05-19-2008
    • Posts 4

    C++ Curl wrapper to REST Nirvanix api

     

    Can the REST Nirvanix api be used using unmanaged vc++ and curl ?  Are any wrapper codes available for this ?

     

    Thanks

     

     

     

    Filed under: , , ,
  • 05-20-2008 4:14 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 612

    Re: C++ Curl wrapper to REST Nirvanix api

    The closest thing to that would be the NPut script that uses the curl command line application through a bash script.  You can find the script here:

    http://developer.nirvanix.com/files/folders/bash/entry776.aspx

    The script shows how to call both a normal call and do an upload.

    Regards,
        Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 05-21-2008 11:15 AM In reply to

    • mclaio
    • Top 75 Contributor
    • Joined on 05-19-2008
    • Posts 4

    Re: C++ Curl wrapper to REST Nirvanix api

    Hi Barry,

    Thanks for your response.

    Are all calls to the Nirvanix IMFS http Post and Get calls and a XML response is returned ?

    The curl library can be used to post these http calls and fetch the response that can be parsed in C++.

    Is this possible, or do you see any problems on developing such a solution.

     Regards

     Dave

  • 05-21-2008 5:42 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 612

    Re: C++ Curl wrapper to REST Nirvanix api

     

    mclaio:
    Are all calls to the Nirvanix IMFS http Post and Get calls and a XML response is returned ?

    Yes, the interface inbound can be done using HTTP Post / Get (or SOAP.)  The results are always in XML format with a response code being the common return value.  Take a look in our documentation at some of the examples in the IMFS section:

     http://developer.nirvanix.com/sitefiles/1000/API.html#_Toc175999912

    Using Curl is a great option, the libraries in every language I have tested are excellent as well as fast.  We have used Curl for a number of solutions and we consider it a great library.  If you have any specific questions while you are developing feel free to bring them up.

    Regards,
        Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
Page 1 of 1 (4 items)