public new void Parse(string header)
{
base.Parse (header);
if (Method == "CONNECT")
return;
if (HttpVersion == "HTTP/1.0")
KeepAlive = false;
if (HttpVersion == "HTTP/1.1")
KeepAlive = true;
foreach (string line in this) {
int keysep = line.IndexOf (':');
if (keysep < 0)
continue;
string key = line.Substring (0, keysep).ToLowerInvariant ();
string s = line.Substring (keysep + 1).Trim ();
ParseHeader (key, s);
}
//Intercepting proxy get host from host header
if (Uri.IsAbsoluteUri == false || Uri.IsFile == true) {
Uri baseUri = new Uri ("http://" + Host);
Uri = new Uri (baseUri, this.Uri);
}
}