}
PostMethod delete = new PostMethod(MODIFY_QUEUE_URL);
List<MovieItem> oldQueue = getMovieQueue();
MovieItem queueItem;
for (int i=0; i < newMovieQueue.size(); i++) {
queueItem = newMovieQueue.get(i);
delete.setParameter("OR" + queueItem.getMovieId(), Integer.toString(i+1));
int oldIndex = oldQueue.indexOf(queueItem);
delete.setParameter("OP" + queueItem.getMovieId(), Integer.toString(oldIndex+1));
}
delete.setParameter("updateQueueBtn", "Update Your Queue");
int code = httpClient.executeMethod(delete);