How to use REST API to 'Upload Deployment' in Activiti 5.10?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2012 03:36 AM
How to use REST API to "Upload Deployment" in Activiti 5.10?
this is the userguide: http://www.activiti.org/userguide/index.html#N12870,
but it doesnot tell me the parameters which i should to pass to the url.
i use "php-curl" to call the REST API,
will someone give me some examples ?
thank you all!
this is the userguide: http://www.activiti.org/userguide/index.html#N12870,
but it doesnot tell me the parameters which i should to pass to the url.
i use "php-curl" to call the REST API,
will someone give me some examples ?
thank you all!
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2012 08:46 AM
From the user guide:
There are no special POST-parameters needed, just a plain "multipart/form-data". Look at the docs of php-curl how to send file-data.
using normal "html form upload" (enctype=multipart/form-data) in other words not a json-request. The deployment information is returned as a response if the deploy action succeeds.
There are no special POST-parameters needed, just a plain "multipart/form-data". Look at the docs of php-curl how to send file-data.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2012 09:37 AM
From the user guide:using normal "html form upload" (enctype=multipart/form-data) in other words not a json-request. The deployment information is returned as a response if the deploy action succeeds.
There are no special POST-parameters needed, just a plain "multipart/form-data". Look at the docs of php-curl how to send file-data.
thank you!
i have solved my problem.
actually, i got the problem of the curl http_code 417.
see here, http://www.khattam.info/417-expectation-failed-in-php-curl-while-submitting-multi-part-forms-2011-04...
thanks all!
