{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/http/issues/16","repository_url":"https://api.github.com/repos/dart-lang/http","labels_url":"https://api.github.com/repos/dart-lang/http/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/http/issues/16/comments","events_url":"https://api.github.com/repos/dart-lang/http/issues/16/events","html_url":"https://github.com/dart-lang/http/issues/16","id":85648061,"node_id":"MDU6SXNzdWU4NTY0ODA2MQ==","number":16,"title":"http post a map object using application/json content-type","user":{"login":"DartBot","id":8958862,"node_id":"MDQ6VXNlcjg5NTg4NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/8958862?v=4","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"id":158525511,"node_id":"MDU6TGFiZWwxNTg1MjU1MTE=","url":"https://api.github.com/repos/dart-lang/http/labels/closed-not-planned","name":"closed-not-planned","color":"8d8d8d","default":false},{"id":158525505,"node_id":"MDU6TGFiZWwxNTg1MjU1MDU=","url":"https://api.github.com/repos/dart-lang/http/labels/type-bug","name":"type-bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-06-05T22:31:53Z","updated_at":"2018-10-18T16:03:00Z","closed_at":"2015-06-05T22:31:54Z","author_association":"NONE","body":"_Originally opened as dart-lang/sdk#17636_\n\n_This issue was originally filed by NathanBing...&#064;gmail.com_\n\n---\n\nI am encountering a problem trying to use the &quot;package:http/http.dart' pub package to post some JSON data to a web service. I have formatted the data correctly (which I confirmed by posting using the Advanced REST Client extension for Chrome) and the only difference is the Content-Type is forced to the wrong type (the web service only accepts &quot;application/json&quot;):\n\nIf body is a Map, it's encoded as form fields using encoding. The content-type of the request will be set to &quot;application/x-www-form-urlencoded&quot;; this cannot be overridden.\n\nThe documentation suggests:\n\nFor more fine-grained control over the request, use Request or StreamedRequest instead.\n\nWhy is the post content type limited to only form-urlencoded?  Can the pub package be fixed to set the content type dynamically? \n"},"comment":{"url":"https://api.github.com/repos/dart-lang/http/issues/comments/431066600","html_url":"https://github.com/dart-lang/http/issues/16#issuecomment-431066600","issue_url":"https://api.github.com/repos/dart-lang/http/issues/16","id":431066600,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTA2NjYwMA==","user":{"login":"efroim102","id":7014197,"node_id":"MDQ6VXNlcjcwMTQxOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/7014197?v=4","gravatar_id":"","url":"https://api.github.com/users/efroim102","html_url":"https://github.com/efroim102","followers_url":"https://api.github.com/users/efroim102/followers","following_url":"https://api.github.com/users/efroim102/following{/other_user}","gists_url":"https://api.github.com/users/efroim102/gists{/gist_id}","starred_url":"https://api.github.com/users/efroim102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efroim102/subscriptions","organizations_url":"https://api.github.com/users/efroim102/orgs","repos_url":"https://api.github.com/users/efroim102/repos","events_url":"https://api.github.com/users/efroim102/events{/privacy}","received_events_url":"https://api.github.com/users/efroim102/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T16:03:00Z","updated_at":"2018-10-18T16:03:00Z","author_association":"NONE","body":"Is there anyway to POST json with a property that has an array value? I've been trying to send a json object to a server which works unless I add a property with the value of array (a dart List<int>) or a property with an int property."}}
{"actor":{"display_login":"efroim102"}}