pike.git / lib / modules / Protocols.pmod / HTTP.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:60:   }      array(string) get_url_nice(string url,void|mapping query_variables)   {    object c=get_url(url,query_variables);    return c && ({c->headers["content-type"],c->data()});   }      array(string) get_url_data(string url,void|mapping query_variables)   { -  array z=get_url(url,query_variables); -  return z && get_url(url,query_variables)[1]; +  object z=get_url(url,query_variables); +  return z && z->data();   }      object post_url(string url,mapping query_variables)   {    object con=master()->resolv("Protocols")["HTTP"]["Query"]();       string prot="http",host;    int port=80;    string query;   
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:102:   }      array(string) post_url_nice(string url,mapping query_variables)   {    object c=post_url(url,query_variables);    return c && ({c->headers["content-type"],c->data()});   }      array(string) post_url_data(string url,mapping query_variables)   { -  array z=post_url(url,query_variables); -  return z && post_url(url,query_variables)[1]; +  object z=post_url(url,query_variables); +  return z && z->data();   }      //!   //! method string unentity(string s)   //! Helper function for replacing HTML entities   //! with the corresponding iso-8859-1 characters.   //! note:   //! All characters isn't replaced, only those with   //! corresponding iso-8859-1 characters.