Here's how I did it with the $ http provider:
$http({ url:'api/api.asp', method: 'GET', params: { client_status: ["CLIENT_STATUS_FORMER", "CLIENT_STATUS_ACTIVE"], client_reference: "e" } }).then(function (result) { $scope.test = result.data; });
The server call becomes:
api/api.asp?client_reference=e&client_status=%5B%22CLIENT_STATUS_FORMER%22%2C%22CLIENT_STATUS_ACTIVE%22%5D
And on the server (here is the classic asp vbscript):
<% Response.Write Request.QueryString("client_status") %>
What is displayed:
["CLIENT_STATUS_FORMER","CLIENT_STATUS_ACTIVE"]
And you can use it as a regular array.
EDIT: It should be very similar to the $ resource provider:
$resource('api/api.asp', {}, { get: { method: 'GET', params: { client_status: ["CLIENT_STATUS_FORMER", "CLIENT_STATUS_ACTIVE"], client_reference: "e" } } );
source share