{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13915","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13915/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13915/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13915/events","html_url":"https://github.com/symfony/symfony/pull/13915","id":60869393,"number":13915,"title":"[HttpKernel] Do not enable HtmlDumper if the request is issued by curl","user":{"login":"lyrixx","id":408368,"avatar_url":"https://avatars.githubusercontent.com/u/408368?v=3","gravatar_id":"","url":"https://api.github.com/users/lyrixx","html_url":"https://github.com/lyrixx","followers_url":"https://api.github.com/users/lyrixx/followers","following_url":"https://api.github.com/users/lyrixx/following{/other_user}","gists_url":"https://api.github.com/users/lyrixx/gists{/gist_id}","starred_url":"https://api.github.com/users/lyrixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyrixx/subscriptions","organizations_url":"https://api.github.com/users/lyrixx/orgs","repos_url":"https://api.github.com/users/lyrixx/repos","events_url":"https://api.github.com/users/lyrixx/events{/privacy}","received_events_url":"https://api.github.com/users/lyrixx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2015-03-12T18:20:12Z","updated_at":"2015-04-03T05:37:28Z","closed_at":"2015-04-02T19:15:12Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/13915","html_url":"https://github.com/symfony/symfony/pull/13915","diff_url":"https://github.com/symfony/symfony/pull/13915.diff","patch_url":"https://github.com/symfony/symfony/pull/13915.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | -\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\nIf the request is issue by curl the output of `dump` function is in HTML, and so it's \"dirty\".\r\n\r\nSo, with this patch and the following code, I could get:\r\n\r\n```php\r\n        die(dump([\r\n            'key' => 'value',\r\n            'date' => new \\DateTime(),\r\n        ]));\r\n```\r\n\r\nIn web:\r\n\r\n![screenshot10](https://cloud.githubusercontent.com/assets/408368/6624899/b3e95990-c8ec-11e4-9bdf-99ce448cd778.png)\r\n\r\nin cli:\r\n\r\n![screenshot12](https://cloud.githubusercontent.com/assets/408368/6624900/b9d5cfbe-c8ec-11e4-8d30-1a661559e93e.png)\r\n\r\n\\o/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/89169934","html_url":"https://github.com/symfony/symfony/pull/13915#issuecomment-89169934","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13915","id":89169934,"user":{"login":"aitboudad","id":1753742,"avatar_url":"https://avatars.githubusercontent.com/u/1753742?v=3","gravatar_id":"","url":"https://api.github.com/users/aitboudad","html_url":"https://github.com/aitboudad","followers_url":"https://api.github.com/users/aitboudad/followers","following_url":"https://api.github.com/users/aitboudad/following{/other_user}","gists_url":"https://api.github.com/users/aitboudad/gists{/gist_id}","starred_url":"https://api.github.com/users/aitboudad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitboudad/subscriptions","organizations_url":"https://api.github.com/users/aitboudad/orgs","repos_url":"https://api.github.com/users/aitboudad/repos","events_url":"https://api.github.com/users/aitboudad/events{/privacy}","received_events_url":"https://api.github.com/users/aitboudad/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T05:37:28Z","updated_at":"2015-04-03T05:37:28Z","body":"It's better than nothing :+1: "}}