had previous method in get, switched it to POST.

call post to localhost/friends and the json will be returned