Hi, I need to make a HTTP POST call to a Hudson CI server from CakePHP. The call is parametrized and contains a few key/value pairs. Some of those fields are strings, but a few are files which need to be uploaded. Those files reside cake-side on the filesystem.
Since I'm using CakePHP, I'd rather use the HttpSocket class which comes with the framework rather then try and write my own cURL based implementation. So far, the call looks like this: $result = $http->post($apiCall, $params, $auth); $apiCall being the URI of the Hudson REST API. $params being an array of parameters which go with the POST call. $auth containing a user/ pass for Basic Auth which configured with this is instance of Hudson. I'm a bit puzzled though: what would I need to do to also included files in my $params array? I've been toying with writing my own HTTP POST request (doing all the boundary stuff and such) but that doesn't work at all. We are running Hudson v1.371 which should - as far as I've gathered - support file uploads coming from a parametrized build call. Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
