{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zf2/issues/7496","labels_url":"https://api.github.com/repos/zendframework/zf2/issues/7496/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zf2/issues/7496/comments","events_url":"https://api.github.com/repos/zendframework/zf2/issues/7496/events","html_url":"https://github.com/zendframework/zf2/issues/7496","id":73858763,"number":7496,"title":"how to pass a array(no numberic index) to a interface by POST?","user":{"login":"zuoRambo","id":4715122,"avatar_url":"https://avatars.githubusercontent.com/u/4715122?v=3","gravatar_id":"","url":"https://api.github.com/users/zuoRambo","html_url":"https://github.com/zuoRambo","followers_url":"https://api.github.com/users/zuoRambo/followers","following_url":"https://api.github.com/users/zuoRambo/following{/other_user}","gists_url":"https://api.github.com/users/zuoRambo/gists{/gist_id}","starred_url":"https://api.github.com/users/zuoRambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuoRambo/subscriptions","organizations_url":"https://api.github.com/users/zuoRambo/orgs","repos_url":"https://api.github.com/users/zuoRambo/repos","events_url":"https://api.github.com/users/zuoRambo/events{/privacy}","received_events_url":"https://api.github.com/users/zuoRambo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-07T06:09:12Z","updated_at":"2015-05-07T09:17:23Z","closed_at":"2015-05-07T07:56:18Z","body":"talk is cheap,show you the code ~~\r\n```\r\n$paramPost = array('xxx','yyy','zzz');\r\n$client = new Client('http://myhost/myinterface');\r\n$client->setMethod('POST');\r\n$client->setParameterPost(array(\r\n        'image_name_array' => $paramPost,\r\n));\r\n$client->send();\r\n$responseBody = $client->getResponse()->getBody();\r\n```\r\nwhen i print the request raw content,i find a question:\r\n```\r\nimage_name_array%5B0%5D=xxx&image_name_array%5B1%5D=yyy&image_name_array%5B2%5D=zzz\r\n```\r\nthe pretty format is:\r\n```\r\nimage_name_array[0]=xxx&image_name_array[1]=yyy&image_name_array[2]=zzz\r\n```\r\nbut the server expected the follow data: 'image_name_array[]=xxx&image_name_array[]=yyy&image_name_array[]=zzz' how to handle the question?"},"comment":{"url":"https://api.github.com/repos/zendframework/zf2/issues/comments/99787945","html_url":"https://github.com/zendframework/zf2/issues/7496#issuecomment-99787945","issue_url":"https://api.github.com/repos/zendframework/zf2/issues/7496","id":99787945,"user":{"login":"Martin-P","id":1311879,"avatar_url":"https://avatars.githubusercontent.com/u/1311879?v=3","gravatar_id":"","url":"https://api.github.com/users/Martin-P","html_url":"https://github.com/Martin-P","followers_url":"https://api.github.com/users/Martin-P/followers","following_url":"https://api.github.com/users/Martin-P/following{/other_user}","gists_url":"https://api.github.com/users/Martin-P/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin-P/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin-P/subscriptions","organizations_url":"https://api.github.com/users/Martin-P/orgs","repos_url":"https://api.github.com/users/Martin-P/repos","events_url":"https://api.github.com/users/Martin-P/events{/privacy}","received_events_url":"https://api.github.com/users/Martin-P/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T09:17:23Z","updated_at":"2015-05-07T09:17:23Z","body":"> nope, perhaps my description is't clear, i use Http\\Client to post data to a server imitate form submit, but the request is not same as form action.\r\n\r\nThe javascript code generates the same array again:\r\n```\r\nimage_name_array(\r\n    0 => 'xxx',\r\n    1 => 'yyy',\r\n    2 => 'zzz',\r\n)\r\n```\r\n> i think our zf2 should support this post way, though i know the programming way may be cumbersome but practical !\r\n\r\nPerhaps you can clarify the practical use for [] instead of [0]? If the use case is clear it might be easier to understand your point."}}