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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:65:   //! void|mapping request_headers, void|Protocols.HTTP.Query con,@   //! void|string data)   //!   //! Low level HTTP call method.   object do_method(string method,    string|Standards.URI url,    void|mapping query_variables,    void|mapping request_headers,    void|Protocols.HTTP.Query con, void|string data)   { -  if(!con) { +  if(!con)    con = Protocols.HTTP.Query(); -  } -  if(!request_headers) -  request_headers = ([]); +     -  +     if(stringp(url))    url=Standards.URI(url);      #if constant(SSL.sslfile)    if(url->scheme!="http" && url->scheme!="https")    error("Protocols.HTTP can't handle %O or any other protocols than HTTP or HTTPS\n",    url->scheme);       con->https= (url->scheme=="https")? 1 : 0;   #else