After sending the post request I get an answer:
HTTP/1.1 200 OK Server: nginx/1.3.9 Date: Fri, 14 Oct 2016 06:23:56 GMT Content-Type: text/html; charset=utf-8 Content-Length: 1948 Connection: keep-alive X-Powered-By: PHP/5.3.29-1~dotdeb.0 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding {"data":[{"date":"2016-10-14 09:17:10","s1":"2","s3":"4","s5":"6","s7":"8","s9":"10","s11":"12","s13":"14","s15":"16","s17":"18","s19":"20"} How do I remove everything that goes to {"data":[{"date":"2016-10-14 09:17:10","s1":"2","s3":"4","s5":"6","s7":"8","s9":"10","s11":"12","s13":"14","s15":"16","s17":"18","s19":"20"} , i.e. I need to use regular expressions to somehow remove all the headers.
/^.*?{/- Mike