BoBzY
02-17-2012, 16:38
Hello,
Currently using socket to download a page, and I need a way to remove the 'header'
Here the data received
HTTP/1.1 200 OK
Date: Fri, 17 Feb 2012 21:09:22 GMT
Server: Apache
P3P: policyref="/w3c/p3p.xml" CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
Connection: close
Content-Type: application/xml; charset=utf-8
<?xml version="1.0" encoding="utf-8"?>
etc...
All these datas are in the same string (called receiveData)
How to do to only get :
<?xml version="1.0" encoding="utf-8"?>
etc.
Already tried Regex, but pretty sure I did something wrong, I deleted the whole code, any idea?
Thanks to all
Currently using socket to download a page, and I need a way to remove the 'header'
Here the data received
HTTP/1.1 200 OK
Date: Fri, 17 Feb 2012 21:09:22 GMT
Server: Apache
P3P: policyref="/w3c/p3p.xml" CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
Connection: close
Content-Type: application/xml; charset=utf-8
<?xml version="1.0" encoding="utf-8"?>
etc...
All these datas are in the same string (called receiveData)
How to do to only get :
<?xml version="1.0" encoding="utf-8"?>
etc.
Already tried Regex, but pretty sure I did something wrong, I deleted the whole code, any idea?
Thanks to all