+ else if (!strcmp((const char *) ptr->name, "max-redirects"))
+ {
+ m_p->max_redirects = mp::xml::get_int(ptr, 0);
+ }
+ else if (!strcmp((const char *) ptr->name, "default-host"))
+ {
+ m_p->default_host = mp::xml::get_text(ptr);
+ if (m_p->default_host.find("://") == std::string::npos)
+ {
+ throw mp::filter::FilterException
+ ("default-host is missing method (such as http://)"
+ " in http_client filter");
+ }
+ }