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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:1:   #pike __REAL_VERSION__    - // $Id: Session.pike,v 1.25 2010/03/07 21:48:27 srb Exp $ + // $Id$      import Protocols.HTTP;      typedef string|Standards.URI|SessionURL URL;      //! The number of redirects to follow, if any.   //! This is the default to the created Request objects.   //!   //! A redirect automatically turns into a GET request,   //! and all header, query, post or put information is dropped.
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:87:   #else    if(url->scheme!="http" )    error("Protocols.HTTP can't handle %O or any other "    "protocol than HTTP\n",    url->scheme);   #endif    mapping request_headers = copy_value(default_headers);    if (url->referer)    request_headers->referer=(string)url->referer;    -  if(url->user || url->passwd) +  if(url->user || url->password)    request_headers->authorization = "Basic " -  + MIME.encode_base64(url->user + ":" + +  + MIME.encode_base64((url->user || "") + ":" +    (url->password || ""));       request_headers->connection=    (time_to_keep_unused_connections<=0)?"Close":"Keep-Alive";       request_headers->host=url->host;       if (extra_headers)    request_headers|=extra_headers;