java - Making POST request containing a list -
i've been trying implement scala application makes post request given rest web services. in request, there list of strings. try use scalaj allows params map string string.
so, wonder if there anyway make post request containing list of strings in scala, solutions in java welcomed.
after looking , trying around, find answer surprisingly simple. although scalaj allows map string string, allows list of tuples. keeping same first value in tuples, can send list of items.
for example, in order send list of numbers key "data", need to:
http.post("http://localhost/dummy").params("data" -> "1", "data" -> "2")
Comments
Post a Comment