nategood/httpful — pull request #89 by dtelaroli (2013-07-31 17:34:01+00:00)
Title: Upload feature

Implemented basic feature to upload files.

Use:

\Httpful\Request::post($this->url)
->addHeader('Accept', 'application/json')
->body(array())
->attach(array('indexToPost' => '/path/to/file'))
->send()

The content type should be multipart/form-data
Method should be POST
Data should be array