Skip to content

Instantly share code, notes, and snippets.

@beders
Created January 17, 2012 06:42
Show Gist options
  • Save beders/1625217 to your computer and use it in GitHub Desktop.
Save beders/1625217 to your computer and use it in GitHub Desktop.
POST multipart form data (application/multipart-formdata)
// POST multipart form data (application/multipart-formdata)
Resty r = new Resty();
String firstResult = r.xml("http://api.search.yahoo.com/WebSearchService/V1/webSearch",
form(data("appid","YahooDemo"),data("query", "Resty+java"), data("results", "10")))
.get("/ResultSet/Result[1]/Title",String.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment