danielcrenna/hammock — Issue #66: PUT Request with query string parameters
Author: tomgallard
Created: 2012-02-09 09:09:37+00:00
State: open

I'm looking to use Hammock to consume the Dropbox API, and running into problems with the /files_put resource: http://www.dropbox.com/developers/reference/api#files_put

This specifies that the body of my request should be the file data, and then all other parameters to go in the query string.

In Hammock, I've tried using the AddPostContent method to set the file body, and then AddParameter to add parameters. But when the request gets sent, the file body is empty (but with a content length equal to that of the parameters). The query string is also empty.

Is this an expected use-case and I'm just doing something wrong, or do I need to write some custom code to get this working.

Thanks a lot.