{"action":"created","issue":{"url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/524","labels_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/524/comments","events_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/524/events","html_url":"https://github.com/cpp-netlib/cpp-netlib/issues/524","id":74213362,"number":524,"title":"there so special char in the string ","user":{"login":"linkt","id":7455401,"avatar_url":"https://avatars.githubusercontent.com/u/7455401?v=3","gravatar_id":"","url":"https://api.github.com/users/linkt","html_url":"https://github.com/linkt","followers_url":"https://api.github.com/users/linkt/followers","following_url":"https://api.github.com/users/linkt/following{/other_user}","gists_url":"https://api.github.com/users/linkt/gists{/gist_id}","starred_url":"https://api.github.com/users/linkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkt/subscriptions","organizations_url":"https://api.github.com/users/linkt/orgs","repos_url":"https://api.github.com/users/linkt/repos","events_url":"https://api.github.com/users/linkt/events{/privacy}","received_events_url":"https://api.github.com/users/linkt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-08T03:27:03Z","updated_at":"2015-05-08T09:04:31Z","closed_at":null,"body":"hello, \r\nwhen I get a jsonstring from the Apache server I find that there are some other char at the start and end.\r\n\r\n\r\nexample:\r\n{\"responseHeader\":{\"status\":0,\"QTime\":0,\"params\":{\"requestType\":5,\"moduleType\":2,\"wt\":\"json\",\"inputPath\":\"\",\"outputPath\":\"\",\"jobName\":\"\"}},\"Response\":{\"numFound\":0,\"start\":0,\"docs\":[{\"return\":\"result:100\\n\"}]}}\r\nit is the string that I get from the Wirshark.\r\n\r\n\r\nd2\r\n\r\n{\"responseHeader\":{\"status\":0,\"QTime\":0,\"params\":{\"requestType\":5,\"moduleType\":2,\"wt\":\"json\",\"inputPath\":\"\",\"outputPath\":\"\",\"jobName\":\"\"}},\"Response\":{\"numFound\":0,\"start\":0,\"docs\":[{\"return\":\"result:100\\n\"}]}}\r\n\r\n0\r\nit get from the body \r\n\r\nps: part of my codes:\r\n\r\nstd::string json_type = \"application/x-www-form-urlencoded\";\r\n\t\t\thttp::client client;\r\n\t\t\thttp::client::request req(url);\r\n\t\t\treq << boost::network::header(\"Content-Type\", json_type);\r\n\t\t\thttp::client::response response;\r\n\t\t\tstd::string bodystr;\r\n\t\t\tbodystr.clear();\r\n\t\t\ttry{\r\n\t\t\t\t response = client.post(req, json_body, json_type);\r\n\t\t\t\t if (body(response).size() == 0)\r\n\t\t\t\t\t throw;\r\n\t\t\t\t bodystr = body(response);\r\n\t\t\t\t ofstream inf(\"test.txt\");\r\n\t\t\t\tinf << bodystr;\r\n\t\t\t}\r\n\t\t\tcatch (std::exception &e){\r\n\t\t\t\tshared_ptr<UnsupportOperationException> ptr = shared_ptr<UnsupportOperationException>(new UnsupportOperationException());\r\n\t\t\t\tbs->setException(ptr);\r\n\t\t\t\tstd::cerr << e.what() << std::endl;\r\n\t\t\t}\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/comments/100163146","html_url":"https://github.com/cpp-netlib/cpp-netlib/issues/524#issuecomment-100163146","issue_url":"https://api.github.com/repos/cpp-netlib/cpp-netlib/issues/524","id":100163146,"user":{"login":"deanberris","id":839088,"avatar_url":"https://avatars.githubusercontent.com/u/839088?v=3","gravatar_id":"","url":"https://api.github.com/users/deanberris","html_url":"https://github.com/deanberris","followers_url":"https://api.github.com/users/deanberris/followers","following_url":"https://api.github.com/users/deanberris/following{/other_user}","gists_url":"https://api.github.com/users/deanberris/gists{/gist_id}","starred_url":"https://api.github.com/users/deanberris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanberris/subscriptions","organizations_url":"https://api.github.com/users/deanberris/orgs","repos_url":"https://api.github.com/users/deanberris/repos","events_url":"https://api.github.com/users/deanberris/events{/privacy}","received_events_url":"https://api.github.com/users/deanberris/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T09:04:31Z","updated_at":"2015-05-08T09:04:31Z","body":"Please try 0.11.1 if you can, or the latest in 0.11-devel to see if it's still a problem?\n\nSent from my iPhone\n\n> On 8 May 2015, at 6:56 pm, linkt <notifications@github.com> wrote:\n> \n> cpp-netlib-0.11.0\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}