When connecting to an http proxy the Session.ConnectHttp() method gets stuck in an endless loop.
this is due to the following code::
switch (statusCode)
{
case HttpStatusCode.OK:
break;
default:
throw new ProxyException(string.Format("HTTP: Status code {0}, \"{1}\"", statusCode, statusCode));
}
which should be
switch (statusCode)
{
case HttpStatusCode.OK:
return_;
default:
throw new ProxyException(string.Format("HTTP: Status code {0}, \"{1}\"", statusCode, statusCode));
}
this is due to the following code::
switch (statusCode)
{
case HttpStatusCode.OK:
break;
default:
throw new ProxyException(string.Format("HTTP: Status code {0}, \"{1}\"", statusCode, statusCode));
}
which should be
switch (statusCode)
{
case HttpStatusCode.OK:
return_;
default:
throw new ProxyException(string.Format("HTTP: Status code {0}, \"{1}\"", statusCode, statusCode));
}