buglabs/bugswarm-api — Issue #16: support to send binary files
Author: c4milo
Created: 2011-12-27 22:23:47+00:00
State: open
Labels: nodejs, task, ★★★★

*Request example

```shell
curl -vvv -H 'x-bugswarmapikey: 04ce03e9ae36cfae8c240ca4ead74412cd969c62' -F file=@key2.pem -F resource_id='8f44aae9cc4494f8d07cf50769b59aa85b53d24c' http://api.dev.bugswarm.net:8002/upload
* About to connect() to api.dev.bugswarm.net port 8002 (#0)
* Trying 127.0.0.1... connected
* Connected to api.dev.bugswarm.net (127.0.0.1) port 8002 (#0)
> POST /upload HTTP/1.1
> User-Agent: curl/7.21.2 (x86_64-apple-darwin10.5.0) libcurl/7.21.2 OpenSSL/1.0.0d zlib/1.2.5 libidn/1.20
> Host: api.dev.bugswarm.net:8002
> Accept: */*
> x-bugswarmapikey: 04ce03e9ae36cfae8c240ca4ead74412cd969c62
> Content-Length: 2036
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------e5ffbbf43353
>
< HTTP/1.1 100 Continue
< HTTP/1.1 201 Created
< X-Powered-By: BSS v1.0
< Location: http://api.dev.bugswarm.net/files/key2.pem
< Content-Type: text/plain
< Content-Length: 7
< Connection: keep-alive
<
* Connection #0 to host api.dev.bugswarm.net left intact
* Closing connection #0
Created
```