Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PostMethod post = new PostMethod("http://developer.echonest.com/api/v4/catalog/create");
- Part[] parts = { new StringPart("api_key", apiKey), new StringPart("type", "artist"),
- new StringPart("name", "test_artist_catalog") };
- post.addRequestHeader("Content-Type", "multipart/form-data");
- MultipartRequestEntity mpEntity = new MultipartRequestEntity(parts, post.getParams());
- post.setRequestEntity(mpEntity);
- HttpClient client = new HttpClient();
- client.executeMethod(post);
Advertisement
Add Comment
Please, Sign In to add comment