c# - Remove HTTP headers from a raw response -
let's make request url , raw response, this:
http/1.1 200 ok
date: wed, 28 apr 2010 14:39:13 gmt
expires: -1
cache-control: private, max-age=0
content-type: text/html; charset=iso-8859-1
set-cookie: pref=id=e2bca72563dfffcc:tm=1272465553:lm=1272465553:s=zn2zv8oxlfpt1bjg; expires=fri, 27-apr-2012 14:39:13 gmt; path=/; domain=.google.co.uk
server: gws
x-xss-protection: 1; mode=block
connection: close
<!doctype html><html><head>...</head><body>...</body></html>
what best way remove http headers response in c#? regexes? parsing kind of httpresponse object , using body?
edit:
i'm using socks make request; that's why raw response.
headers , body separated empty line. easier without re. search first empty line.
Comments
Post a Comment