Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / cURL

Use Curl to Export Case360 Applications

0.00/5 (No votes)
8 Feb 2016CPOL 9.9K  
Steps to automate application exports for case360 using cURL

Introduction

One of the major bug bears of working with case360 is the manual export and deployment process. It can result in a developer sitting for about 20 minutes exporting a series of xml to then hand on for deployment. 

This covers some simple examples of using cURL (http://curl.haxx.se/) to download the application export file. It does not cover validation of the applications that were downloaded. This is based on 11.x of case360

Exporting an Application 

Exporting the application uses the unpublished details of the ImportExport servlet. Note that the [Application Name] is the base64 encoded version of the name of your application.  Base 64 encode / decode can be found https://www.base64decode.org/. 

Sample curl to export an application

curl -u [user:Pass] -L --insecure -o "[outputfilename]" "[servername]/sonora/ImportExport?op=export&applicationName=[ApplicationName]"

The above example is in windows and other than [ApplicationName] the variables relate to cURL functionality

Points of Interest

When the application download function is called, cURL downloads what ever the response is. In the case of success the applications will be downloaded but if there is an error then the error page will be downloaded. Further validation is still required.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)