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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:67:    string method,    URL url,    void|mapping query_variables,    void|mapping extra_headers,    void|string data)    {    if(stringp(url))    url=Standards.URI(url);    url_requested=url;    - #if constant(SSL.sslfile) + #if constant(SSL.File)    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);       if(!con) con=give_me_connection(url_requested);    con->https= (url->scheme=="https")? 1 : 0;   #else    if(url->scheme!="http" )    error("Protocols.HTTP can't handle %O or any other "    "protocol than HTTP\n",    url->scheme); - #endif + #endif /* constant(SSL.File) */    mapping request_headers = copy_value(default_headers);    if (url->referer)    request_headers->referer=(string)url->referer;       if(url->user || url->password)    request_headers->authorization = "Basic "    + MIME.encode_base64((url->user || "") + ":" +    (url->password || ""));       request_headers->connection=